microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.53k stars 1.56k forks source link

Sizeof struct incorrect for packed structs (gcc/clang) #5267

Closed qzed closed 3 years ago

qzed commented 4 years ago

Type: LanguageService

Describe the bug

sizeof(struct ...) is incorrect in analyzer for packed structs (defined with __attribute__ ((__packed__))) using both gcc and clang as analyzer backend (I have not tested this on Windows/with MSVC). The sizeof seems to be calculated as if the struct were not packed.

Steps to reproduce

Consider the following MWE:

#include <stdint.h>
#include <assert.h>
#include <stdio.h>

struct test {
    uint8_t a;
    uint16_t b;
} __attribute__ ((__packed__));

static_assert(sizeof(struct test) == 3, "...");

int main() {
    printf("%lu\n", sizeof(struct test));
}

compiled with either clang or gcc, this prints 3. The analyzer, however, considers the size of the struct to be 4, causing a problem to be displayed at the static assert (static assert failed with "...").

Expected behavior

The sizeof should be correct, in this case 3. The static assertion should not fail due to this.

Logs Log Diagnostics ``` -------- Diagnostics - 4/8/2020, 9:42:13 PM Version: 0.27.0 Current Configuration: { "name": "Linux", "includePath": [ "${workspaceFolder}/**" ], "defines": [], "compilerPath": "/usr/bin/gcc", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "gcc-x64", "compilerArgs": [], "browse": { "path": [ "${workspaceFolder}/**" ], "limitSymbolsToIncludedHeaders": true } } Translation Unit Mappings: [ /home/qzed/tmp/test.c ]: /home/qzed/tmp/test.c Translation Unit Configurations: [ /home/qzed/tmp/test.c ]: Process ID: 18654 Memory Usage: 21 MB Compiler Path: /usr/bin/gcc Includes: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include /usr/local/include /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include-fixed /usr/include Standard Version: c11 IntelliSense Mode: gcc-x64 Other Flags: --gcc --gnu_version=90300 Total Memory Usage: 21 MB ``` ``` initialized cpptools/queryCompilerDefaults (id: 1) Attempting to get defaults from compiler found on the machine: '/usr/bin/clang' terminating child process: 19973 Attempting to get defaults from compiler found on the machine: '/usr/bin/clang' terminating child process: 19978 cpptools/didChangeCppProperties Attempting to get defaults from compiler in "compilerPath" property: '/usr/bin/gcc' terminating child process: 19980 Code browsing service initialized Attempting to get defaults from compiler in "compilerPath" property: '/usr/bin/gcc' terminating child process: 19982 Folder: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/ will be indexed Folder: /usr/local/include/ will be indexed Folder: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include-fixed/ will be indexed Folder: /usr/include/ will be indexed Folder: /home/qzed/tmp/ will be indexed textDocument/didOpen: file:///home/qzed/tmp/test.c Populate include completion cache. cpptools/activeDocumentChange: file:///home/qzed/tmp/test.c Discovering files... cpptools/textEditorSelectionChange cpptools/getDocumentSymbols: file:///home/qzed/tmp/test.c (id: 2) cpptools/getDocumentSymbols: file:///home/qzed/tmp/test.c (id: 3) cpptools/getDocumentSymbols tag parsing file: /home/qzed/tmp/test.c sending compilation args for /home/qzed/tmp/test.c include: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include include: /usr/local/include include: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include-fixed include: /usr/include define: __STDC__=1 define: __STDC_VERSION__=201112L define: __STDC_UTF_16__=1 define: __STDC_UTF_32__=1 define: __STDC_HOSTED__=1 define: __GNUC__=9 define: __GNUC_MINOR__=3 define: __GNUC_PATCHLEVEL__=0 define: __VERSION__="9.3.0" define: __ATOMIC_RELAXED=0 define: __ATOMIC_SEQ_CST=5 define: __ATOMIC_ACQUIRE=2 define: __ATOMIC_RELEASE=3 define: __ATOMIC_ACQ_REL=4 define: __ATOMIC_CONSUME=1 define: __pic__=2 define: __PIC__=2 define: __pie__=2 define: __PIE__=2 define: __FINITE_MATH_ONLY__=0 define: _LP64=1 define: __LP64__=1 define: __SIZEOF_INT__=4 define: __SIZEOF_LONG__=8 define: __SIZEOF_LONG_LONG__=8 define: __SIZEOF_SHORT__=2 define: __SIZEOF_FLOAT__=4 define: __SIZEOF_DOUBLE__=8 define: __SIZEOF_LONG_DOUBLE__=16 define: __SIZEOF_SIZE_T__=8 define: __CHAR_BIT__=8 define: __BIGGEST_ALIGNMENT__=16 define: __ORDER_LITTLE_ENDIAN__=1234 define: __ORDER_BIG_ENDIAN__=4321 define: __ORDER_PDP_ENDIAN__=3412 define: __BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__ define: __FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__ define: __SIZEOF_POINTER__=8 define: __SIZE_TYPE__=long unsigned int define: __PTRDIFF_TYPE__=long int define: __WCHAR_TYPE__=int define: __WINT_TYPE__=unsigned int define: __INTMAX_TYPE__=long int define: __UINTMAX_TYPE__=long unsigned int define: __CHAR16_TYPE__=short unsigned int define: __CHAR32_TYPE__=unsigned int define: __SIG_ATOMIC_TYPE__=int define: __INT8_TYPE__=signed char define: __INT16_TYPE__=short int define: __INT32_TYPE__=int define: __INT64_TYPE__=long int define: __UINT8_TYPE__=unsigned char define: __UINT16_TYPE__=short unsigned int define: __UINT32_TYPE__=unsigned int define: __UINT64_TYPE__=long unsigned int define: __INT_LEAST8_TYPE__=signed char define: __INT_LEAST16_TYPE__=short int define: __INT_LEAST32_TYPE__=int define: __INT_LEAST64_TYPE__=long int define: __UINT_LEAST8_TYPE__=unsigned char define: __UINT_LEAST16_TYPE__=short unsigned int define: __UINT_LEAST32_TYPE__=unsigned int define: __UINT_LEAST64_TYPE__=long unsigned int define: __INT_FAST8_TYPE__=signed char define: __INT_FAST16_TYPE__=long int define: __INT_FAST32_TYPE__=long int define: __INT_FAST64_TYPE__=long int define: __UINT_FAST8_TYPE__=unsigned char define: __UINT_FAST16_TYPE__=long unsigned int define: __UINT_FAST32_TYPE__=long unsigned int define: __UINT_FAST64_TYPE__=long unsigned int define: __INTPTR_TYPE__=long int define: __UINTPTR_TYPE__=long unsigned int define: __GXX_ABI_VERSION=1013 define: __SCHAR_MAX__=0x7f define: __SHRT_MAX__=0x7fff define: __INT_MAX__=0x7fffffff define: __LONG_MAX__=0x7fffffffffffffffL define: __LONG_LONG_MAX__=0x7fffffffffffffffLL define: __WCHAR_MAX__=0x7fffffff define: __WCHAR_MIN__=(-__WCHAR_MAX__ - 1) define: __WINT_MAX__=0xffffffffU define: __WINT_MIN__=0U define: __PTRDIFF_MAX__=0x7fffffffffffffffL define: __SIZE_MAX__=0xffffffffffffffffUL define: __SCHAR_WIDTH__=8 define: __SHRT_WIDTH__=16 define: __INT_WIDTH__=32 define: __LONG_WIDTH__=64 define: __LONG_LONG_WIDTH__=64 define: __WCHAR_WIDTH__=32 define: __WINT_WIDTH__=32 define: __PTRDIFF_WIDTH__=64 define: __SIZE_WIDTH__=64 define: __INTMAX_MAX__=0x7fffffffffffffffL define: __INTMAX_C(c)=c ## L define: __UINTMAX_MAX__=0xffffffffffffffffUL define: __UINTMAX_C(c)=c ## UL define: __INTMAX_WIDTH__=64 define: __SIG_ATOMIC_MAX__=0x7fffffff define: __SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1) define: __SIG_ATOMIC_WIDTH__=32 define: __INT8_MAX__=0x7f define: __INT16_MAX__=0x7fff define: __INT32_MAX__=0x7fffffff define: __INT64_MAX__=0x7fffffffffffffffL define: __UINT8_MAX__=0xff define: __UINT16_MAX__=0xffff define: __UINT32_MAX__=0xffffffffU define: __UINT64_MAX__=0xffffffffffffffffUL define: __INT_LEAST8_MAX__=0x7f define: __INT8_C(c)=c define: __INT_LEAST8_WIDTH__=8 define: __INT_LEAST16_MAX__=0x7fff define: __INT16_C(c)=c define: __INT_LEAST16_WIDTH__=16 define: __INT_LEAST32_MAX__=0x7fffffff define: __INT32_C(c)=c define: __INT_LEAST32_WIDTH__=32 define: __INT_LEAST64_MAX__=0x7fffffffffffffffL define: __INT64_C(c)=c ## L define: __INT_LEAST64_WIDTH__=64 define: __UINT_LEAST8_MAX__=0xff define: __UINT8_C(c)=c define: __UINT_LEAST16_MAX__=0xffff define: __UINT16_C(c)=c define: __UINT_LEAST32_MAX__=0xffffffffU define: __UINT32_C(c)=c ## U define: __UINT_LEAST64_MAX__=0xffffffffffffffffUL define: __UINT64_C(c)=c ## UL define: __INT_FAST8_MAX__=0x7f define: __INT_FAST8_WIDTH__=8 define: __INT_FAST16_MAX__=0x7fffffffffffffffL define: __INT_FAST16_WIDTH__=64 define: __INT_FAST32_MAX__=0x7fffffffffffffffL define: __INT_FAST32_WIDTH__=64 define: __INT_FAST64_MAX__=0x7fffffffffffffffL define: __INT_FAST64_WIDTH__=64 define: __UINT_FAST8_MAX__=0xff define: __UINT_FAST16_MAX__=0xffffffffffffffffUL define: __UINT_FAST32_MAX__=0xffffffffffffffffUL define: __UINT_FAST64_MAX__=0xffffffffffffffffUL define: __INTPTR_MAX__=0x7fffffffffffffffL define: __INTPTR_WIDTH__=64 define: __UINTPTR_MAX__=0xffffffffffffffffUL define: __GCC_IEC_559=2 define: __GCC_IEC_559_COMPLEX=2 define: __FLT_EVAL_METHOD__=0 define: __FLT_EVAL_METHOD_TS_18661_3__=0 define: __DEC_EVAL_METHOD__=2 define: __FLT_RADIX__=2 define: __FLT_MANT_DIG__=24 define: __FLT_DIG__=6 define: __FLT_MIN_EXP__=(-125) define: __FLT_MIN_10_EXP__=(-37) define: __FLT_MAX_EXP__=128 define: __FLT_MAX_10_EXP__=38 define: __FLT_DECIMAL_DIG__=9 define: __FLT_MAX__=3.40282346638528859811704183484516925e+38F define: __FLT_MIN__=1.17549435082228750796873653722224568e-38F define: __FLT_EPSILON__=1.19209289550781250000000000000000000e-7F define: __FLT_DENORM_MIN__=1.40129846432481707092372958328991613e-45F define: __FLT_HAS_DENORM__=1 define: __FLT_HAS_INFINITY__=1 define: __FLT_HAS_QUIET_NAN__=1 define: __DBL_MANT_DIG__=53 define: __DBL_DIG__=15 define: __DBL_MIN_EXP__=(-1021) define: __DBL_MIN_10_EXP__=(-307) define: __DBL_MAX_EXP__=1024 define: __DBL_MAX_10_EXP__=308 define: __DBL_DECIMAL_DIG__=17 define: __DBL_MAX__=((double)1.79769313486231570814527423731704357e+308L) define: __DBL_MIN__=((double)2.22507385850720138309023271733240406e-308L) define: __DBL_EPSILON__=((double)2.22044604925031308084726333618164062e-16L) define: __DBL_DENORM_MIN__=((double)4.94065645841246544176568792868221372e-324L) define: __DBL_HAS_DENORM__=1 define: __DBL_HAS_INFINITY__=1 define: __DBL_HAS_QUIET_NAN__=1 define: __LDBL_MANT_DIG__=64 define: __LDBL_DIG__=18 define: __LDBL_MIN_EXP__=(-16381) define: __LDBL_MIN_10_EXP__=(-4931) define: __LDBL_MAX_EXP__=16384 define: __LDBL_MAX_10_EXP__=4932 define: __DECIMAL_DIG__=21 define: __LDBL_DECIMAL_DIG__=21 define: __LDBL_MAX__=1.18973149535723176502126385303097021e+4932L define: __LDBL_MIN__=3.36210314311209350626267781732175260e-4932L define: __LDBL_EPSILON__=1.08420217248550443400745280086994171e-19L define: __LDBL_DENORM_MIN__=3.64519953188247460252840593361941982e-4951L define: __LDBL_HAS_DENORM__=1 define: __LDBL_HAS_INFINITY__=1 define: __LDBL_HAS_QUIET_NAN__=1 define: __FLT32_MANT_DIG__=24 define: __FLT32_DIG__=6 define: __FLT32_MIN_EXP__=(-125) define: __FLT32_MIN_10_EXP__=(-37) define: __FLT32_MAX_EXP__=128 define: __FLT32_MAX_10_EXP__=38 define: __FLT32_DECIMAL_DIG__=9 define: __FLT32_MAX__=3.40282346638528859811704183484516925e+38F32 define: __FLT32_MIN__=1.17549435082228750796873653722224568e-38F32 define: __FLT32_EPSILON__=1.19209289550781250000000000000000000e-7F32 define: __FLT32_DENORM_MIN__=1.40129846432481707092372958328991613e-45F32 define: __FLT32_HAS_DENORM__=1 define: __FLT32_HAS_INFINITY__=1 define: __FLT32_HAS_QUIET_NAN__=1 define: __FLT64_MANT_DIG__=53 define: __FLT64_DIG__=15 define: __FLT64_MIN_EXP__=(-1021) define: __FLT64_MIN_10_EXP__=(-307) define: __FLT64_MAX_EXP__=1024 define: __FLT64_MAX_10_EXP__=308 define: __FLT64_DECIMAL_DIG__=17 define: __FLT64_MAX__=1.79769313486231570814527423731704357e+308F64 define: __FLT64_MIN__=2.22507385850720138309023271733240406e-308F64 define: __FLT64_EPSILON__=2.22044604925031308084726333618164062e-16F64 define: __FLT64_DENORM_MIN__=4.94065645841246544176568792868221372e-324F64 define: __FLT64_HAS_DENORM__=1 define: __FLT64_HAS_INFINITY__=1 define: __FLT64_HAS_QUIET_NAN__=1 define: __FLT128_MANT_DIG__=113 define: __FLT128_DIG__=33 define: __FLT128_MIN_EXP__=(-16381) define: __FLT128_MIN_10_EXP__=(-4931) define: __FLT128_MAX_EXP__=16384 define: __FLT128_MAX_10_EXP__=4932 define: __FLT128_DECIMAL_DIG__=36 define: __FLT128_MAX__=1.18973149535723176508575932662800702e+4932F128 define: __FLT128_MIN__=3.36210314311209350626267781732175260e-4932F128 define: __FLT128_EPSILON__=1.92592994438723585305597794258492732e-34F128 define: __FLT128_DENORM_MIN__=6.47517511943802511092443895822764655e-4966F128 define: __FLT128_HAS_DENORM__=1 define: __FLT128_HAS_INFINITY__=1 define: __FLT128_HAS_QUIET_NAN__=1 define: __FLT32X_MANT_DIG__=53 define: __FLT32X_DIG__=15 define: __FLT32X_MIN_EXP__=(-1021) define: __FLT32X_MIN_10_EXP__=(-307) define: __FLT32X_MAX_EXP__=1024 define: __FLT32X_MAX_10_EXP__=308 define: __FLT32X_DECIMAL_DIG__=17 define: __FLT32X_MAX__=1.79769313486231570814527423731704357e+308F32x define: __FLT32X_MIN__=2.22507385850720138309023271733240406e-308F32x define: __FLT32X_EPSILON__=2.22044604925031308084726333618164062e-16F32x define: __FLT32X_DENORM_MIN__=4.94065645841246544176568792868221372e-324F32x define: __FLT32X_HAS_DENORM__=1 define: __FLT32X_HAS_INFINITY__=1 define: __FLT32X_HAS_QUIET_NAN__=1 define: __FLT64X_MANT_DIG__=64 define: __FLT64X_DIG__=18 define: __FLT64X_MIN_EXP__=(-16381) define: __FLT64X_MIN_10_EXP__=(-4931) define: __FLT64X_MAX_EXP__=16384 define: __FLT64X_MAX_10_EXP__=4932 define: __FLT64X_DECIMAL_DIG__=21 define: __FLT64X_MAX__=1.18973149535723176502126385303097021e+4932F64x define: __FLT64X_MIN__=3.36210314311209350626267781732175260e-4932F64x define: __FLT64X_EPSILON__=1.08420217248550443400745280086994171e-19F64x define: __FLT64X_DENORM_MIN__=3.64519953188247460252840593361941982e-4951F64x define: __FLT64X_HAS_DENORM__=1 define: __FLT64X_HAS_INFINITY__=1 define: __FLT64X_HAS_QUIET_NAN__=1 define: __DEC32_MANT_DIG__=7 define: __DEC32_MIN_EXP__=(-94) define: __DEC32_MAX_EXP__=97 define: __DEC32_MIN__=1E-95DF define: __DEC32_MAX__=9.999999E96DF define: __DEC32_EPSILON__=1E-6DF define: __DEC32_SUBNORMAL_MIN__=0.000001E-95DF define: __DEC64_MANT_DIG__=16 define: __DEC64_MIN_EXP__=(-382) define: __DEC64_MAX_EXP__=385 define: __DEC64_MIN__=1E-383DD define: __DEC64_MAX__=9.999999999999999E384DD define: __DEC64_EPSILON__=1E-15DD define: __DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD define: __DEC128_MANT_DIG__=34 define: __DEC128_MIN_EXP__=(-6142) define: __DEC128_MAX_EXP__=6145 define: __DEC128_MIN__=1E-6143DL define: __DEC128_MAX__=9.999999999999999999999999999999999E6144DL define: __DEC128_EPSILON__=1E-33DL define: __DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL define: __REGISTER_PREFIX__= define: __USER_LABEL_PREFIX__= define: __GNUC_STDC_INLINE__=1 define: __NO_INLINE__=1 define: __STRICT_ANSI__=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: __GCC_ATOMIC_BOOL_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: __GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: __GCC_ATOMIC_SHORT_LOCK_FREE=2 define: __GCC_ATOMIC_INT_LOCK_FREE=2 define: __GCC_ATOMIC_LONG_LOCK_FREE=2 define: __GCC_ATOMIC_LLONG_LOCK_FREE=2 define: __GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: __GCC_ATOMIC_POINTER_LOCK_FREE=2 define: __HAVE_SPECULATION_SAFE_VALUE=1 define: __GCC_HAVE_DWARF2_CFI_ASM=1 define: __PRAGMA_REDEFINE_EXTNAME=1 define: __SSP_STRONG__=3 define: __SIZEOF_INT128__=16 define: __SIZEOF_WCHAR_T__=4 define: __SIZEOF_WINT_T__=4 define: __SIZEOF_PTRDIFF_T__=8 define: __amd64=1 define: __amd64__=1 define: __x86_64=1 define: __x86_64__=1 define: __SIZEOF_FLOAT80__=16 define: __SIZEOF_FLOAT128__=16 define: __ATOMIC_HLE_ACQUIRE=65536 define: __ATOMIC_HLE_RELEASE=131072 define: __GCC_ASM_FLAG_OUTPUTS__=1 define: __k8=1 define: __k8__=1 define: __code_model_small__=1 define: __MMX__=1 define: __SSE__=1 define: __SSE2__=1 define: __FXSR__=1 define: __SSE_MATH__=1 define: __SSE2_MATH__=1 define: __SEG_FS=1 define: __SEG_GS=1 define: __gnu_linux__=1 define: __linux=1 define: __linux__=1 define: __unix=1 define: __unix__=1 define: __ELF__=1 define: __DECIMAL_BID_FORMAT__=1 define: _STDC_PREDEF_H=1 define: __STDC_IEC_559__=1 define: __STDC_IEC_559_COMPLEX__=1 define: __STDC_ISO_10646__=201706L other: --gcc other: --gnu_version=90300 stdver: c11 intelliSenseMode: gcc-x64 Checking for syntax errors: file:///home/qzed/tmp/test.c Queueing IntelliSense update for files in translation unit of: /home/qzed/tmp/test.c Processing folder (recursive): /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/ Processing folder (recursive): /usr/local/include/ Processing folder (recursive): /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include-fixed/ Processing folder (recursive): /usr/include/ cpptools/getDocumentSymbols: file:///home/qzed/tmp/test.c (id: 4) cpptools/getDocumentSymbols cpptools/getDocumentSymbols idle loop: reparsing the active document Checking for syntax errors: file:///home/qzed/tmp/test.c Queueing IntelliSense update for files in translation unit of: /home/qzed/tmp/test.c cpptools/cpptools_finishUpdateSquiggles Error squiggle count: 1 terminating child process: 20028 cpptools/cpptools_finishUpdateSquiggles Error squiggle count: 1 Update IntelliSense time (sec): 0.568 Processing folder (recursive): /home/qzed/tmp/ Discovering files: 76346 file(s) processed 0 file(s) removed from database Done discovering files. Parsing remaining files... Parsing: 0 files(s) processed Done parsing remaining files. Database safe to open cpptools/activeDocumentChange: file:///home/qzed/tmp/test.c cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange idle loop: reparsing the active document Checking for syntax errors: file:///home/qzed/tmp/test.c Queueing IntelliSense update for files in translation unit of: /home/qzed/tmp/test.c textDocument/documentHighlight: file:///home/qzed/tmp/test.c (id: 5) cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/cpptools_finishUpdateSquiggles Error squiggle count: 1 Update IntelliSense time (sec): 0.255 cpptools/textEditorSelectionChange textDocument/didChange: file:///home/qzed/tmp/test.c cpptools/textEditorSelectionChange cpptools/getDocumentSymbols: file:///home/qzed/tmp/test.c (id: 6) cpptools/getDocumentSymbols textDocument/didChange: file:///home/qzed/tmp/test.c cpptools/getDocumentSymbols: file:///home/qzed/tmp/test.c (id: 7) textDocument/didChange: file:///home/qzed/tmp/test.c textDocument/documentHighlight: file:///home/qzed/tmp/test.c (id: 8) sending 3 changes to server Checking for syntax errors: file:///home/qzed/tmp/test.c Queueing IntelliSense update for files in translation unit of: /home/qzed/tmp/test.c textDocument/didSave: file:///home/qzed/tmp/test.c tag parsing file: /home/qzed/tmp/test.c cpptools/fileChanged: file:///home/qzed/tmp/test.c cpptools/getDocumentSymbols: file:///home/qzed/tmp/test.c (id: 10) cpptools/cpptools_finishUpdateSquiggles Error squiggle count: 1 Update IntelliSense time (sec): 0.259 cpptools/getCodeActions: file:///home/qzed/tmp/test.c (id: 11) idle loop: reparsing the active document Checking for syntax errors: file:///home/qzed/tmp/test.c Queueing IntelliSense update for files in translation unit of: /home/qzed/tmp/test.c cpptools/cpptools_finishUpdateSquiggles Error squiggle count: 1 Update IntelliSense time (sec): 0.262 cpptools/getCodeActions: file:///home/qzed/tmp/test.c (id: 12) tag parsing file: /usr/include/unistring/stdint.h tag parsing file: /usr/include/zzip/stdint.h tag parsing file: /usr/include/sys/types.h tag parsing file: /usr/include/zzip/conf.h tag parsing file: /usr/include/capnp/endian.h tag parsing file: /usr/include/kj/io.h tag parsing file: /usr/include/openvdb/io/io.h tag parsing file: /usr/include/reiserfs/io.h tag parsing file: /usr/include/wine/windows/windows.h tag parsing file: /usr/include/libavutil/common.h tag parsing file: /usr/include/mutter-6/meta/common.h tag parsing file: /usr/include/pybind11/detail/common.h tag parsing file: /usr/include/tensorflow/external/nsync/internal/common.h tag parsing file: /usr/include/gpgme++/exception.h tag parsing file: /usr/include/openvdb/Types.h tag parsing file: /usr/include/boost/any.hpp tag parsing file: /usr/include/c++/9.3.0/memory tag parsing file: /usr/include/girara/config.h tag parsing file: /usr/include/git2/config.h tag parsing file: /usr/include/gtkmm-2.4/gtkmm/misc.h tag parsing file: /usr/include/capnp/rpc.h tag parsing file: /usr/include/winpr2/winpr/rpc.h tag parsing file: /usr/include/winpr2/winpr/winsock.h tag parsing file: /usr/include/tensorflow/tensorflow/compiler/xla/client/lib/math.h tag parsing file: /usr/include/torch/csrc/jit/attributes.h tag parsing file: /usr/include/KF5/kjs/internal.h tag parsing file: /usr/include/tensorflow/external/boringssl/src/ssl/internal.h tag parsing file: /usr/include/clutter-1.0/clutter/clutter.h tag parsing file: /usr/include/python2.7/Python.h tag parsing file: /usr/include/tensorflow/external/nsync/platform/c++11/platform.h tag parsing file: /usr/include/gpgme++/error.h tag parsing file: /usr/include/openvdb/math/Math.h tag parsing file: /usr/include/openvdb/math/Vec2.h tag parsing file: /usr/include/boost/type_index.hpp Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/boost/type_index.hpp tag parsing file: /usr/include/c++/9.3.0/pstl/glue_memory_impl.h tag parsing file: /usr/include/KF5/kjs/types.h tag parsing file: /usr/include/git2/types.h tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/types.h tag parsing file: /usr/include/openssl-1.0/openssl/buffer.h tag parsing file: /usr/include/openssl/buffer.h tag parsing file: /usr/include/rados/buffer.h tag parsing file: /usr/include/gtkmm-3.0/gtkmm/widget.h tag parsing file: /usr/include/capnp/capability.h tag parsing file: /usr/include/winpr2/winpr/sspi.h tag parsing file: /usr/include/sys/ioctl.h tag parsing file: /usr/include/tensorflow/tensorflow/compiler/xla/client/xla_builder.h tag parsing file: /usr/include/ATen/ATen.h tag parsing file: /usr/include/octave-5.2.0/octave/interpreter.h tag parsing file: /usr/include/msgpack/object.h tag parsing file: /usr/include/OpenImageIO/ustring.h tag parsing file: /usr/include/openssl-1.0/openssl/ssl.h tag parsing file: /usr/include/clutter-1.0/clutter/clutter-types.h tag parsing file: /usr/include/python2.7/compile.h tag parsing file: /usr/include/tbb/compat/condition_variable tag parsing file: /usr/include/KF5/KIOCore/kio/global.h tag parsing file: /usr/include/boost/numeric/conversion/conversion_traits.hpp tag parsing file: /usr/include/vtk/vtkm/thirdparty/taotuple/vtkmtaotuple/include/Tuple.h tag parsing file: /usr/include/boost/type_index/stl_type_index.hpp tag parsing file: /usr/include/blockdev/utils.h tag parsing file: /usr/include/octave-5.2.0/octave/utils.h tag parsing file: /usr/include/tensorflow/tensorflow/core/grappler/utils.h tag parsing file: /usr/include/torch/csrc/api/include/torch/utils.h tag parsing file: /usr/include/torch/csrc/utils.h tag parsing file: /usr/include/capnp/list.h tag parsing file: /usr/include/mbedtls/oid.h Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/mbedtls/oid.h tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/resource_handle.h tag parsing file: /usr/include/tensorflow/external/boringssl/src/include/openssl/ossl_typ.h tag parsing file: /usr/include/openssl-1.0/openssl/crypto.h tag parsing file: /usr/include/wx-3.0/wx/ribbon/page.h tag parsing file: /usr/include/gtkmm-3.0/gtkmm/stylecontext.h tag parsing file: /usr/include/kj/async.h tag parsing file: /usr/include/wine/windows/tchar.h tag parsing file: /usr/include/ntfs-3g/security.h tag parsing file: /usr/include/bits/ioctls.h tag parsing file: /usr/include/tensorflow/absl/container/flat_hash_map.h tag parsing file: /usr/include/ATen/Tensor.h tag parsing file: /usr/include/octave-5.2.0/octave/str-vec.h tag parsing file: /usr/include/wx-3.0/wx/help.h tag parsing file: /usr/include/octave-5.2.0/octave/input.h tag parsing file: /usr/include/octave-5.2.0/octave/ov-classdef.h tag parsing file: /usr/include/octave-5.2.0/octave/pt-eval.h tag parsing file: /usr/include/gtkmm-2.4/gtkmm/settings.h tag parsing file: /usr/include/dns/zone.h tag parsing file: /usr/include/OpenImageIO/strutil.h tag parsing file: /usr/include/tensorflow/external/boringssl/src/include/openssl/srtp.h tag parsing file: /usr/include/cogl/cogl/cogl.h tag parsing file: /usr/include/hidrd/fmt/code.h tag parsing file: /usr/include/tbb/mutex.h tag parsing file: /usr/include/tbb/tbb_thread.h Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/tbb/tbb_thread.h tag parsing file: /usr/include/rttr/detail/metadata/metadata.h tag parsing file: /usr/include/boost/numeric/conversion/detail/conversion_traits.hpp tag parsing file: /usr/include/vtk/vtkm/thirdparty/taotuple/vtkmtaotuple/include/tao/tuple/tuple.hpp tag parsing file: /usr/include/boost/container_hash/hash.hpp tag parsing file: /usr/include/telepathy-1.0/telepathy-glib/dbus.h tag parsing file: /usr/include/octave-5.2.0/octave/dMatrix.h tag parsing file: /usr/include/tensorflow/tensorflow/core/graph/tensor_id.h tag parsing file: /usr/include/ATen/Parallel.h tag parsing file: /usr/include/THC/THC.h tag parsing file: /usr/include/capnp/layout.h tag parsing file: /usr/include/mbedtls/pk.h Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/mbedtls/pk.h tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/tensor_shape.h tag parsing file: /usr/include/gstreamer-1.0/gst/base/base.h tag parsing file: /usr/include/tensorflow/external/boringssl/src/include/openssl/opensslv.h tag parsing file: /usr/include/wx-3.0/wx/ribbon/control.h tag parsing file: /usr/include/gtkmm-2.4/gtkmm/iconset.h tag parsing file: /usr/include/kj/async-inl.h tag parsing file: /usr/include/php/ext/mbstring/mbstring.h tag parsing file: /usr/include/glusterfs/inode.h tag parsing file: /usr/include/ntfs-3g/inode.h tag parsing file: /usr/include/asm/ioctls.h tag parsing file: /usr/include/tensorflow/absl/container/internal/hash_function_defaults.h tag parsing file: /usr/include/ATen/core/TensorMethods.h tag parsing file: /usr/include/poppler/Array.h tag parsing file: /usr/include/wx-3.0/wx/helpbase.h tag parsing file: /usr/include/wx-3.0/wx/html/helpctrl.h tag parsing file: /usr/include/octave-5.2.0/octave/hook-fcn.h tag parsing file: /usr/include/octave-5.2.0/octave/ov-base.h tag parsing file: /usr/include/tensorflow/tensorflow/cc/profiler/profiler.h tag parsing file: /usr/include/gtkmm-2.4/gtkmm/toolbar.h tag parsing file: /usr/include/dns/catz.h tag parsing file: /usr/include/OpenImageIO/hash.h tag parsing file: /usr/include/nss/ssl.h tag parsing file: /usr/include/cogl/cogl/cogl-kms-display.h tag parsing file: /usr/include/hidrd/fmt/code/snk.h tag parsing file: /usr/include/tbb/aligned_space.h tag parsing file: /usr/include/guile/2.2/libguile/atomic.h tag parsing file: /usr/include/rttr/variant.h tag parsing file: /usr/include/boost/numeric/conversion/detail/meta.hpp tag parsing file: /usr/include/boost/numeric/conversion/detail/is_subranged.hpp tag parsing file: /usr/include/vtk/vtkm/thirdparty/taotuple/vtkmtaotuple/include/tao/seq/exclusive_scan.hpp tag parsing file: /usr/include/vtk/vtkm/thirdparty/taotuple/vtkmtaotuple/include/tao/seq/inclusive_scan.hpp tag parsing file: /usr/include/vtk/vtkm/thirdparty/taotuple/vtkmtaotuple/include/tao/seq/integer_sequence.hpp tag parsing file: /usr/include/vtk/vtkm/thirdparty/taotuple/vtkmtaotuple/include/tao/seq/map.hpp tag parsing file: /usr/include/vtk/vtkm/thirdparty/taotuple/vtkmtaotuple/include/tao/seq/minus.hpp tag parsing file: /usr/include/boost/type_traits/is_enum.hpp tag parsing file: /usr/include/telepathy-1.0/telepathy-glib/dbus-daemon.h tag parsing file: /usr/include/octave-5.2.0/octave/MArray.h tag parsing file: /usr/include/tensorflow/tensorflow/core/graph/graph.h tag parsing file: /usr/include/ATen/ParallelNativeTBB.h tag parsing file: /usr/include/THC/THCTensor.h tag parsing file: /usr/include/GraphicsMagick/magick/blob.h tag parsing file: /usr/include/ImageMagick-7/MagickCore/blob.h tag parsing file: /usr/include/caffe2/core/blob.h tag parsing file: /usr/include/nettle/rsa.h tag parsing file: /usr/include/tensorflow/tensorflow/core/lib/core/errors.h tag parsing file: /usr/include/gstreamer-1.0/gst/base/base-prelude.h tag parsing file: /usr/include/freerdp2/freerdp/crypto/crypto.h tag parsing file: /usr/include/xmlsec1/xmlsec/nss/crypto.h tag parsing file: /usr/include/wx-3.0/wx/control.h tag parsing file: /usr/include/gtkmm-2.4/gtkmm/stockid.h tag parsing file: /usr/include/glusterfs/async.h Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/glusterfs/async.h tag parsing file: /usr/include/php/main/SAPI.h tag parsing file: /usr/include/glusterfs/iatt.h tag parsing file: /usr/include/glusterfs/fd.h tag parsing file: /usr/include/giomm-2.4/giomm/volume.h tag parsing file: /usr/include/ntfs-3g/volume.h tag parsing file: /usr/include/asm-generic/ioctls.h tag parsing file: /usr/include/tensorflow/absl/hash/hash.h tag parsing file: /usr/include/ATen/core/dispatch/Dispatcher.h tag parsing file: /usr/include/poppler/Object.h tag parsing file: /usr/include/tensorflow/tools/llvm-objcopy/COFF/Object.h tag parsing file: /usr/include/tensorflow/tools/llvm-objcopy/ELF/Object.h tag parsing file: /usr/include/wx-3.0/wx/frame.h tag parsing file: /usr/include/wx-3.0/wx/html/helpfrm.h tag parsing file: /usr/include/libxslt/variables.h tag parsing file: /usr/include/mozjs-52/mozilla/Range.h tag parsing file: /usr/include/tensorflow/tensorflow/core/profiler/internal/tfprof_stats.h tag parsing file: /usr/include/gtkmm-3.0/gtkmm/toolitem.h tag parsing file: /usr/include/dns/rdata.h tag parsing file: /usr/include/OpenImageIO/fmath.h tag parsing file: /usr/include/nspr/prtypes.h Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/nspr/prtypes.h tag parsing file: /usr/include/xf86drmMode.h tag parsing file: /usr/include/hidrd/fmt/spec/snk.h tag parsing file: /usr/include/tbb/tbb_machine.h tag parsing file: /usr/include/guile/2.0/libguile/gc.h tag parsing file: /usr/include/rttr/detail/variant/variant_impl.h tag parsing file: /usr/include/boost/mpl/if.hpp tag parsing file: /usr/include/boost/mpl/equal_to.hpp tag parsing file: /usr/include/boost/mpl/and.hpp tag parsing file: /usr/include/boost/mpl/bool.hpp tag parsing file: /usr/include/boost/mpl/multiplies.hpp tag parsing file: /usr/include/boost/compute/algorithm/partial_sum.hpp tag parsing file: /usr/include/vtk/vtkm/thirdparty/taotuple/vtkmtaotuple/include/tao/seq/partial_sum.hpp tag parsing file: /usr/include/boost/algorithm/cxx17/exclusive_scan.hpp tag parsing file: /usr/include/boost/compute/algorithm/exclusive_scan.hpp tag parsing file: /usr/include/boost/hana/ext/std/integer_sequence.hpp tag parsing file: /usr/include/boost/hana/plus.hpp tag parsing file: /usr/include/boost/mpl/plus.hpp tag parsing file: /usr/include/boost/ratio/mpl/plus.hpp tag parsing file: /usr/include/boost/spirit/home/karma/operator/plus.hpp tag parsing file: /usr/include/boost/spirit/home/qi/operator/plus.hpp tag parsing file: /usr/include/boost/spirit/home/x3/operator/plus.hpp tag parsing file: /usr/include/boost/chrono/config.hpp tag parsing file: /usr/include/boost/compute/config.hpp tag parsing file: /usr/include/boost/convert/detail/config.hpp tag parsing file: /usr/include/boost/dll/config.hpp tag parsing file: /usr/include/boost/log/detail/config.hpp tag parsing file: /usr/include/boost/math/tools/config.hpp tag parsing file: /usr/include/boost/mpi/config.hpp tag parsing file: /usr/include/boost/numeric/ublas/detail/config.hpp tag parsing file: /usr/include/boost/process/detail/config.hpp tag parsing file: /usr/include/boost/ratio/config.hpp tag parsing file: /usr/include/boost/thread/detail/config.hpp tag parsing file: /usr/include/boost/units/config.hpp tag parsing file: /usr/include/liborcus-0.15/orcus/config.hpp tag parsing file: /usr/include/boost/iostreams/detail/select.hpp tag parsing file: /usr/include/boost/spirit/home/classic/dynamic/select.hpp tag parsing file: /usr/include/boost/fusion/algorithm/transformation/zip.hpp Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/boost/fusion/algorithm/transformation/zip.hpp tag parsing file: /usr/include/boost/hana/zip.hpp tag parsing file: /usr/include/boost/test/data/monomorphic/zip.hpp tag parsing file: /usr/include/boost/type_traits/is_convertible.hpp tag parsing file: /usr/include/boost/type_traits/is_class.hpp tag parsing file: /usr/include/telepathy-1.0/telepathy-glib/proxy.h tag parsing file: /usr/include/octave-5.2.0/octave/mx-inlines.cc tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/function.h tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/op.h tag parsing file: /usr/include/tbb/tbb.h tag parsing file: /usr/include/TH/THTensor.h tag parsing file: /usr/include/ImageMagick-6/magick/image.h tag parsing file: /usr/include/ImageMagick-7/MagickCore/image.h tag parsing file: /usr/include/caffe2/core/tensor.h tag parsing file: /usr/include/php/ext/standard/md5.h tag parsing file: /usr/include/tensorflow/tensorflow/core/platform/str_util.h Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/tensorflow/tensorflow/core/platform/str_util.h tag parsing file: /usr/include/gstreamer-0.10/gst/gst.h tag parsing file: /usr/include/gstreamer-1.0/gst/gst.h tag parsing file: /usr/include/openssl-1.0/openssl/x509v3.h tag parsing file: /usr/include/nss/pk11func.h tag parsing file: /usr/include/wx-3.0/wx/window.h tag parsing file: /usr/include/glibmm-2.4/glibmm.h tag parsing file: /usr/include/urcu/static/wfcqueue.h tag parsing file: /usr/include/urcu/wfcqueue.h tag parsing file: /usr/include/glusterfs/common-utils.h Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/glusterfs/common-utils.h tag parsing file: /usr/include/php/main/php.h tag parsing file: /usr/include/php/Zend/zend.h tag parsing file: /usr/include/php/Zend/zend_API.h tag parsing file: /usr/include/php/Zend/zend_operators.h tag parsing file: /usr/include/glusterfs/compat.h tag parsing file: /usr/include/glusterfs/glusterfs.h tag parsing file: /usr/include/giomm-2.4/giomm/file.h tag parsing file: /usr/include/cdio/device.h tag parsing file: /usr/include/connman/device.h tag parsing file: /usr/include/mupdf/fitz/device.h tag parsing file: /usr/include/tensorflow/tensorflow/core/common_runtime/device.h tag parsing file: /usr/include/ntfs-3g/attrib.h tag parsing file: /usr/include/linux/ioctl.h tag parsing file: /usr/include/tensorflow/absl/hash/internal/hash.h tag parsing file: /usr/include/ATen/core/dispatch/OperatorEntry.h tag parsing file: /usr/include/llvm/TableGen/Error.h tag parsing file: /usr/include/llvm/Testing/Support/Error.h tag parsing file: /usr/include/vtk/vtkm/cont/Error.h tag parsing file: /usr/include/mozjs-60/js/Stream.h tag parsing file: /usr/include/mozjs-68/js/Stream.h tag parsing file: /usr/include/openvdb/io/Stream.h tag parsing file: /usr/include/llvm/Object/COFF.h tag parsing file: /usr/include/mozjs-68/mozilla/Buffer.h tag parsing file: /usr/include/tensorflow/tools/llvm-objcopy/Buffer.h tag parsing file: /usr/include/tensorflow/tools/llvm-objcopy/CopyConfig.h tag parsing file: /usr/include/llvm/Object/ELFObjectFile.h tag parsing file: /usr/include/wx-3.0/wx/toplevel.h tag parsing file: /usr/include/wx-3.0/wx/statusbr.h tag parsing file: /usr/include/wx-3.0/wx/splitter.h tag parsing file: /usr/include/wx-3.0/wx/notebook.h tag parsing file: /usr/include/wx-3.0/wx/combobox.h tag parsing file: /usr/include/wx-3.0/wx/html/htmlwin.h tag parsing file: /usr/include/wx-3.0/wx/html/htmprint.h tag parsing file: /usr/include/tensorflow/tensorflow/core/grappler/utils/functions.h tag parsing file: /usr/include/mozjs-52/mozilla/RangedPtr.h tag parsing file: /usr/include/tensorflow/tensorflow/c/checkpoint_reader.h tag parsing file: /usr/include/tensorflow/tensorflow/core/profiler/internal/tfprof_code.h tag parsing file: /usr/include/tensorflow/tensorflow/core/profiler/internal/tfprof_node.h tag parsing file: /usr/include/gtkmm-2.4/gtkmm/activatable.h tag parsing file: /usr/include/dns/message.h tag parsing file: /usr/include/OpenImageIO/simd.h tag parsing file: /usr/include/nspr/obsolete/protypes.h tag parsing file: /usr/include/d3dadapter/drm.h tag parsing file: /usr/include/hidrd/fmt/spec/snk/ent_list.h tag parsing file: /usr/include/tbb/machine/gcc_generic.h tag parsing file: /usr/include/tbb/machine/macos_common.h tag parsing file: /usr/include/guile/2.0/libguile/bdw-gc.h tag parsing file: /usr/include/rttr/type.h tag parsing file: /usr/include/rttr/detail/variant/variant_data_policy.h tag parsing file: /usr/include/rttr/variant_associative_view.h tag parsing file: /usr/include/rttr/variant_sequential_view.h tag parsing file: /usr/include/boost/mpl/aux_/na_spec.hpp tag parsing file: /usr/include/boost/mpl/aux_/lambda_support.hpp tag parsing file: /usr/include/boost/mpl/aux_/comparison_op.hpp tag parsing file: /usr/include/boost/mpl/aux_/logical_op.hpp tag parsing file: /usr/include/boost/mpl/bool_fwd.hpp tag parsing file: /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp tag parsing file: /usr/include/boost/compute/system.hpp tag parsing file: /usr/include/boost/compute/command_queue.hpp tag parsing file: /usr/include/boost/accumulators/statistics/sum.hpp tag parsing file: /usr/include/boost/hana/sum.hpp tag parsing file: /usr/include/boost/histogram/accumulators/sum.hpp tag parsing file: /usr/include/boost/histogram/algorithm/sum.hpp tag parsing file: /usr/include/boost/range/begin.hpp tag parsing file: /usr/include/boost/range/end.hpp tag parsing file: /usr/include/boost/compute/functional.hpp tag parsing file: /usr/include/boost/compute/algorithm/detail/scan.hpp tag parsing file: /usr/include/boost/hana/bool.hpp tag parsing file: /usr/include/boost/hana/fwd/equal.hpp tag parsing file: /usr/include/boost/hana/concept/constant.hpp tag parsing file: /usr/include/boost/hana/concept/monoid.hpp tag parsing file: /usr/include/boost/hana/core/common.hpp tag parsing file: /usr/include/boost/hana/core/to.hpp tag parsing file: /usr/include/boost/hana/core/dispatch.hpp tag parsing file: /usr/include/boost/mpl/aux_/arithmetic_op.hpp tag parsing file: /usr/include/boost/ratio/ratio.hpp tag parsing file: /usr/include/boost/ratio/mpl/numeric_cast.hpp tag parsing file: /usr/include/boost/spirit/home/karma/domain.hpp tag parsing file: /usr/include/boost/spirit/home/karma/generator.hpp tag parsing file: /usr/include/boost/spirit/home/karma/meta_compiler.hpp tag parsing file: /usr/include/boost/spirit/home/karma/detail/indirect_iterator.hpp tag parsing file: /usr/include/boost/spirit/home/karma/detail/output_iterator.hpp tag parsing file: /usr/include/boost/spirit/home/karma/detail/get_stricttag.hpp tag parsing file: /usr/include/boost/spirit/home/karma/detail/pass_container.hpp tag parsing file: /usr/include/boost/spirit/home/support/info.hpp tag parsing file: /usr/include/boost/spirit/home/support/container.hpp tag parsing file: /usr/include/boost/spirit/home/support/has_semantic_action.hpp tag parsing file: /usr/include/boost/spirit/home/karma/detail/attributes.hpp tag parsing file: /usr/include/boost/spirit/home/qi/meta_compiler.hpp tag parsing file: /usr/include/boost/spirit/home/qi/detail/attributes.hpp tag parsing file: /usr/include/boost/spirit/home/x3/core/parser.hpp tag parsing file: /usr/include/boost/spirit/home/x3/support/traits/container_traits.hpp tag parsing file: /usr/include/boost/spirit/home/x3/core/detail/parse_into_container.hpp tag parsing file: /usr/include/boost/predef.h tag parsing file: /usr/include/boost/compute/cl.hpp tag parsing file: /usr/include/boost/optional.hpp tag parsing file: /usr/include/msgpack/v1/adaptor/boost/optional.hpp tag parsing file: /usr/include/c++/9.3.0/experimental/filesystem tag parsing file: /usr/include/c++/9.3.0/filesystem tag parsing file: /usr/include/boost/filesystem/path.hpp tag parsing file: /usr/include/boost/filesystem/operations.hpp tag parsing file: /usr/include/boost/system/error_code.hpp tag parsing file: /usr/include/boost/predef/os.h tag parsing file: /usr/include/boost/detail/fenv.hpp tag parsing file: /usr/include/mpi.h tag parsing file: /usr/include/boost/noncopyable.hpp tag parsing file: /usr/include/boost/winapi/get_last_error.hpp tag parsing file: /usr/include/boost/mpl/assert.hpp tag parsing file: /usr/include/boost/thread/detail/platform.hpp tag parsing file: /usr/include/boost/typeof/typeof.hpp tag parsing file: /usr/include/liborcus-0.15/orcus/types.hpp tag parsing file: /usr/include/boost/mpl/void.hpp tag parsing file: /usr/include/boost/preprocessor/enum_params_with_defaults.hpp tag parsing file: /usr/include/boost/spirit/home/classic/core/parser.hpp tag parsing file: /usr/include/boost/spirit/home/classic/phoenix/tuples.hpp tag parsing file: /usr/include/boost/spirit/home/classic/dynamic/impl/select.ipp tag parsing file: /usr/include/boost/fusion/view/zip_view.hpp tag parsing file: /usr/include/boost/fusion/adapted/mpl.hpp tag parsing file: /usr/include/boost/fusion/container/vector.hpp tag parsing file: /usr/include/boost/fusion/container/vector/convert.hpp tag parsing file: /usr/include/boost/fusion/support/detail/pp_round.hpp tag parsing file: /usr/include/boost/preprocessor/repetition/enum.hpp tag parsing file: /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp tag parsing file: /usr/include/boost/preprocessor/iteration/iterate.hpp tag parsing file: /usr/include/boost/hana/ext/boost/mpl/vector.hpp tag parsing file: /usr/include/boost/mpl/vector.hpp Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/boost/mpl/vector.hpp tag parsing file: /usr/include/boost/mpl/transform.hpp tag parsing file: /usr/include/boost/mpl/placeholders.hpp Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/boost/mpl/placeholders.hpp tag parsing file: /usr/include/boost/hana/concept/sequence.hpp tag parsing file: /usr/include/boost/hana/tuple.hpp tag parsing file: /usr/include/boost/hana/zip_with.hpp tag parsing file: /usr/include/boost/test/data/monomorphic/fwd.hpp tag parsing file: /usr/include/boost/test/data/monomorphic/sample_merge.hpp tag parsing file: /usr/include/boost/type_traits/is_abstract.hpp tag parsing file: /usr/include/boost/type_traits/is_scalar.hpp tag parsing file: /usr/include/dbus-1.0/dbus/dbus-glib.h tag parsing file: /usr/include/octave-5.2.0/octave/Array-util.h tag parsing file: /usr/include/octave-5.2.0/octave/bsxfun.h tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/attr_value_util.h tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/op_kernel.h tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/op_def_util.h tag parsing file: /usr/include/tbb/blocked_rangeNd.h tag parsing file: /usr/include/tbb/cache_aligned_allocator.h tag parsing file: /usr/include/tbb/concurrent_hash_map.h Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/tbb/concurrent_hash_map.h tag parsing file: /usr/include/tbb/concurrent_lru_cache.h tag parsing file: /usr/include/tbb/concurrent_queue.h tag parsing file: /usr/include/tbb/concurrent_unordered_map.h tag parsing file: /usr/include/tbb/concurrent_map.h tag parsing file: /usr/include/tbb/flow_graph.h tag parsing file: /usr/include/tensorflow/utils/benchmark/src/mutex.h tag parsing file: /usr/include/tbb/parallel_do.h tag parsing file: /usr/include/tbb/parallel_for.h tag parsing file: /usr/include/tbb/spin_mutex.h tag parsing file: /usr/include/tbb/spin_rw_mutex.h tag parsing file: /usr/include/isc/task.h tag parsing file: /usr/include/tbb/task_arena.h tag parsing file: /usr/include/TH/generic/THTensorRandom.h tag parsing file: /usr/include/ImageMagick-6/magick/effect.h tag parsing file: /usr/include/ImageMagick-6/magick/pixel.h tag parsing file: /usr/include/ImageMagick-6/magick/profile.h tag parsing file: /usr/include/ImageMagick-7/MagickCore/effect.h tag parsing file: /usr/include/ImageMagick-7/MagickCore/profile.h tag parsing file: /usr/include/caffe2/core/storage.h tag parsing file: /usr/include/php/ext/standard/basic_functions.h tag parsing file: /usr/include/tensorflow/absl/strings/str_split.h tag parsing file: /usr/include/gstreamer-1.0/gst/gstenumtypes.h tag parsing file: /usr/include/gstreamer-0.10/gst/gstbin.h tag parsing file: /usr/include/gstreamer-1.0/gst/gstbuffer.h tag parsing file: /usr/include/gstreamer-0.10/gst/gstelement.h tag parsing file: /usr/include/gstreamer-1.0/gst/gstelement.h tag parsing file: /usr/include/gstreamer-0.10/gst/gstevent.h tag parsing file: /usr/include/gstreamer-1.0/gst/gstobject.h tag parsing file: /usr/include/gstreamer-0.10/gst/gstpad.h tag parsing file: /usr/include/gstreamer-0.10/gst/gstplugin.h tag parsing file: /usr/include/gstreamer-1.0/gst/gstdevicemonitor.h tag parsing file: /usr/include/openssl/conf.h tag parsing file: /usr/include/nss/pk11pub.h tag parsing file: /usr/include/nss/pk11priv.h tag parsing file: /usr/include/wx-3.0/wx/region.h tag parsing file: /usr/include/wx-3.0/wx/palette.h tag parsing file: /usr/include/wx-3.0/wx/accel.h tag parsing file: /usr/include/glibmm-2.4/glibmm/optioncontext.h tag parsing file: /usr/include/urcu/uatomic.h tag parsing file: /usr/include/urcu/arch.h tag parsing file: /usr/include/glusterfs/mem-pool.h tag parsing file: /usr/include/php/TSRM/tsrm_win32.h tag parsing file: /usr/include/uv/unix.h tag parsing file: /usr/include/php/Zend/zend_alloc.h tag parsing file: /usr/include/php/main/php_streams.h tag parsing file: /usr/include/php/main/fopen_wrappers.h tag parsing file: /usr/include/php/Zend/zend_virtual_cwd.h tag parsing file: /usr/include/php/Zend/zend_constants.h tag parsing file: /usr/include/php/Zend/zend_types.h tag parsing file: /usr/include/php/Zend/zend_modules.h tag parsing file: /usr/include/php/Zend/zend_portability.h tag parsing file: /usr/include/linux/xattr.h tag parsing file: /usr/include/argp.h tag parsing file: /usr/include/sys/statvfs.h tag parsing file: /usr/include/giomm-2.4/giomm/fileattributeinfolist.h tag parsing file: /usr/include/giomm-2.4/giomm/fileinputstream.h tag parsing file: /usr/include/cdio/cdio.h tag parsing file: /usr/include/connman/network.h tag parsing file: /usr/include/mupdf/fitz/image.h tag parsing file: /usr/include/mupdf/fitz/text.h tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/resource_mgr.h tag parsing file: /usr/include/unistr.h tag parsing file: /usr/include/gwenhywfar5/gwenhywfar/debug.h Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/gwenhywfar5/gwenhywfar/debug.h tag parsing file: /usr/include/openvdb/util/logging.h tag parsing file: /usr/include/tensorflow/external/com_googlesource_code_re2/util/logging.h tag parsing file: /usr/include/wds/logging.h tag parsing file: /usr/include/asm/ioctl.h tag parsing file: /usr/include/tensorflow/absl/container/fixed_array.h tag parsing file: /usr/include/ATen/core/dispatch/DispatchTable.h tag parsing file: /usr/include/llvm/Support/SourceMgr.h tag parsing file: /usr/include/llvm/Testing/Support/SupportHelpers.h tag parsing file: /usr/include/gmock/gmock.h tag parsing file: /usr/include/vtk/vtkm/cont/Logging.h tag parsing file: /usr/include/mozjs-52/jstypes.h tag parsing file: /usr/include/mozjs-52/js/RootingAPI.h tag parsing file: /usr/include/mozjs-60/js/RootingAPI.h tag parsing file: /usr/include/mozjs-68/js/RootingAPI.h tag parsing file: /usr/include/llvm/Object/Archive.h tag parsing file: /usr/include/openvdb/io/Archive.h tag parsing file: /usr/include/llvm/Object/ObjectFile.h tag parsing file: /usr/include/llvm/Support/BinaryByteStream.h tag parsing file: /usr/include/mozjs-52/mozilla/Maybe.h tag parsing file: /usr/include/mozjs-60/mozilla/Maybe.h tag parsing file: /usr/include/mozjs-52/mozilla/UniquePtrExtensions.h tag parsing file: /usr/include/llvm/Support/MemoryBuffer.h tag parsing file: /usr/include/llvm/Support/GlobPattern.h tag parsing file: /usr/include/llvm/Target/TargetOptions.h tag parsing file: /usr/include/llvm/Support/ARMAttributeParser.h tag parsing file: /usr/include/wx-3.0/wx/nonownedwnd.h tag parsing file: /usr/include/wx-3.0/wx/weakref.h tag parsing file: /usr/include/wx-3.0/wx/generic/statusbr.h tag parsing file: /usr/include/wx-3.0/wx/generic/splitter.h tag parsing file: /usr/include/wx-3.0/wx/bookctrl.h tag parsing file: /usr/include/wx-3.0/wx/textctrl.h tag parsing file: /usr/include/wx-3.0/wx/textentry.h tag parsing file: /usr/include/wx-3.0/wx/scrolwin.h tag parsing file: /usr/include/wx-3.0/wx/html/winpars.h tag parsing file: /usr/include/wx-3.0/wx/html/htmlcell.h tag parsing file: /usr/include/wx-3.0/wx/print.h tag parsing file: /usr/include/wx-3.0/wx/printdlg.h tag parsing file: /usr/include/tensorflow/tensorflow/core/grappler/grappler_item.h tag parsing file: /usr/include/mozjs-52/mozilla/ArrayUtils.h tag parsing file: /usr/include/tensorflow/tensorflow/c/tf_status_helper.h tag parsing file: /usr/include/tensorflow/tensorflow/core/util/tensor_bundle/tensor_bundle.h tag parsing file: /usr/include/tensorflow/tensorflow/core/util/tensor_slice_reader.h tag parsing file: /usr/include/tensorflow/tensorflow/core/profiler/internal/tfprof_timeline.h tag parsing file: /usr/include/tensorflow/tensorflow/core/platform/regexp.h tag parsing file: /usr/include/gtkmm-2.4/gtkmm/action.h tag parsing file: /usr/include/dst/dst.h tag parsing file: /usr/include/OpenEXR/ImathVec.h tag parsing file: /usr/include/OpenEXR/ImathMatrix.h tag parsing file: /usr/include/tensorflow/tensorflow/core/framework/model.h tag parsing file: /usr/include/d3dadapter/d3dadapter9.h tag parsing file: /usr/include/hidrd/util/ttbl.h tag parsing file: /usr/include/tbb/machine/gcc_ia32_common.h tag parsing file: /usr/include/sys/sysctl.h tag parsing file: /usr/include/gc/gc.h tag parsing file: /usr/include/rttr/string_view.h tag parsing file: /usr/include/rttr/array_range.h tag parsing file: /usr/include/rttr/filter_item.h tag parsing file: /usr/include/rttr/detail/type/type_impl.h tag parsing file: /usr/include/rttr/detail/variant_associative_view/variant_associative_view_creator.h tag parsing file: /usr/include/rttr/detail/variant_sequential_view/variant_sequential_view_creator.h tag parsing file: /usr/include/rttr/detail/variant/variant_data_converter.h tag parsing file: /usr/include/rttr/detail/comparison/compare_equal.h tag parsing file: /usr/include/rttr/detail/comparison/compare_less.h tag parsing file: /usr/include/rttr/detail/variant_associative_view/variant_associative_view_private.h tag parsing file: /usr/include/rttr/detail/variant_sequential_view/variant_sequential_view_private.h tag parsing file: /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp tag parsing file: /usr/include/boost/mpl/aux_/yes_no.hpp tag parsing file: /usr/include/boost/preprocessor/tuple/to_list.hpp tag parsing file: /usr/include/boost/preprocessor/list/for_each_i.hpp tag parsing file: /usr/include/boost/mpl/aux_/numeric_op.hpp Tag parsing encountered a error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/boost/mpl/aux_/numeric_op.hpp tag parsing file: /usr/include/boost/mpl/aux_/preprocessor/sub.hpp tag parsing file: /usr/include/boost/mpl/aux_/adl_barrier.hpp tag parsing file: /usr/include/boost/preprocessor/tuple/elem.hpp tag parsing file: /usr/include/boost/compute/device.hpp tag parsing file: /usr/include/boost/compute/context.hpp tag parsing file: /usr/include/boost/compute/event.hpp tag parsing file: /usr/include/boost/compute/buffer.hpp tag parsing file: /usr/include/boost/compute/kernel.hpp tag parsing file: /usr/include/boost/compute/exception.hpp tag parsing file: /usr/include/boost/compute/image/image1d.hpp tag parsing file: /usr/include/boost/compute/detail/get_object_info.hpp tag parsing file: /usr/include/boost/compute/utility/extents.hpp tag parsing file: /usr/include/boost/accumulators/framework/accumulator_base.hpp tag parsing file: /usr/include/boost/accumulators/framework/extractor.hpp tag parsing file: /usr/include/boost/accumulators/numeric/functional.hpp tag parsing file: /usr/include/boost/accumulators/framework/parameters/sample.hpp tag parsing file: /usr/include/boost/accumulators/framework/accumulators/external_accumulator.hpp tag parsing file: /usr/include/boost/accumulators/framework/depends_on.hpp tag parsing file: /usr/include/boost/accumulators/statistics_fwd.hpp tag parsing file: /usr/include/boost/accumulators/statistics/count.hpp tag parsing file: /usr/include/boost/hana/concept/foldable.hpp tag parsing file: /usr/include/boost/hana/fold_left.hpp tag parsing file: /usr/include/boost/hana/zero.hpp tag parsing file: /usr/include/boost/histogram/fwd.hpp tag parsing file: /usr/include/boost/mp11/utility.hpp tag parsing file: /usr/include/boost/range/detail/begin.hpp tag parsing file: /usr/include/boost/range/iterator.hpp tag parsing file: /usr/include/boost/range/const_iterator.hpp tag parsing file: /usr/include/boost/compute/functional/atomic.hpp tag parsing file: /usr/include/boost/compute/functional/common.hpp tag parsing file: /usr/include/boost/compute/functional/geometry.hpp tag parsing file: /usr/include/boost/compute/functional/get.hpp tag parsing file: /usr/include/boost/compute/algorithm/detail/scan_on_cpu.hpp tag parsing file: /usr/include/boost/compute/algorithm/detail/scan_on_gpu.hpp tag parsing file: /usr/include/boost/hana/detail/operators/arithmetic.hpp tag parsing file: /usr/include/boost/hana/detail/operators/comparable.hpp tag parsing file: /usr/include/boost/hana/detail/operators/logical.hpp tag parsing file: /usr/include/boost/hana/detail/operators/orderable.hpp cpptools/getDocumentSymbols cpptools/getDocumentSymbols Database safe to open ```
sean-mcmanus commented 4 years ago

The bug repros with Visual Studio too. I've filed a bug at https://developercommunity.visualstudio.com/content/problem/983393/c-intellisense-in-gccclang-mode-incorrectly-handle.html .

bugproof commented 4 years ago

this doesn't seem to work with #pragma pack too

#pragma pack(push, 1)
struct foo
{
    int x;
    char y;
};
#pragma pack(pop)

static_assert(sizeof(foo) == 5) // fail
Colengms commented 3 years ago

This should be addressed in 1.6.0-insiders.