vscode-cpptools
vscode-cpptools copied to clipboard
Document symbols can be missing if an unmatched { is in an inactive region
Environment
- OS and version: windows 10
- VS Code: 1.67.2
- C/C++ extension: v1.11.2
- OS and version of remote machine (if applicable):ubuntu
- GDB / LLDB version:
Bug Summary and Steps to Reproduce
Bug Summary:
-
when openning a source code from remote ubuntu, it uses a long time to loading symbols, and then can not find the symbols with Ctrl+shift+O.
-
after loading the symbols for some time, it will lost the symbols until loading again
-
if I add a new function, outline can not load the function symbols
-
some functions can not be loaded, but I can not find the cause, may be like this code in the function:
#if xxx #if xxx #endif #endif
Debugger Configurations
null
Debugger Logs
null
Other Extensions
No response
Additional Information
No response
Are you able to provide any repro code?
Also, if you set C_Cpp.loggingLevel to "Debug" do you see any "tag parsing" error messages in the C/C++ logging window?
open an Android source code for example:
cpptools/textEditorSelectionChange cpptools/getCodeActions: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3426) textDocument/didOpen: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp cpptools/textEditorSelectionChange cpptools/getDocumentSymbols: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3427) cpptools/getSemanticTokens: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3428) cpptools/getDocumentSymbols cpptools/activeDocumentChange: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp cpptools/getInlayHints: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3429) cpptools/getFoldingRanges: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3430) textDocument/hover: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3431) IntelliSense client not available, using Tag Parser for go to definition. IntelliSense client not available, using Tag Parser for quick info. using Tag Parser for quick info tag parsing file: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp Request canceled: 3431 textDocument/documentHighlight: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3432) cpptools/textEditorSelectionChange cpptools/getCodeActions: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3433) Checking for syntax errors: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp cpptools/getCodeActions: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3434) cpptools/getInlayHints: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3435) tag parsing file: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/include/ACodecBufferChannel.h tag parsing file: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/include/DataConverter.h tag parsing file: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/include/SecureBuffer.h tag parsing file: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/include/SharedMemoryBuffer.h cpptools/getInlayHints: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3436) sending compilation args for /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp include: /usr/include/c++/9 include: /usr/include/x86_64-linux-gnu/c++/9 include: /usr/include/c++/9/backward include: /usr/local/include include: /usr/lib/llvm-10/lib/clang/10.0.0/include include: /usr/include/x86_64-linux-gnu include: /usr/include define: _GNU_SOURCE=1 define: _LP64=1 define: __ATOMIC_ACQUIRE=2 define: __ATOMIC_ACQ_REL=4 define: __ATOMIC_CONSUME=1 define: __ATOMIC_RELAXED=0 define: __ATOMIC_RELEASE=3 define: __ATOMIC_SEQ_CST=5 define: BIGGEST_ALIGNMENT=16 define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: CHAR16_TYPE=unsigned short define: CHAR32_TYPE=unsigned int define: CHAR_BIT=8 define: __CLANG_ATOMIC_BOOL_LOCK_FREE=2 define: __CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 define: __CLANG_ATOMIC_CHAR_LOCK_FREE=2 define: __CLANG_ATOMIC_INT_LOCK_FREE=2 define: __CLANG_ATOMIC_LLONG_LOCK_FREE=2 define: __CLANG_ATOMIC_LONG_LOCK_FREE=2 define: __CLANG_ATOMIC_POINTER_LOCK_FREE=2 define: __CLANG_ATOMIC_SHORT_LOCK_FREE=2 define: __CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 define: CONSTANT_CFSTRINGS=1 define: DBL_DECIMAL_DIG=17 define: DBL_DENORM_MIN=4.9406564584124654e-324 define: DBL_DIG=15 define: DBL_EPSILON=2.2204460492503131e-16 define: DBL_HAS_DENORM=1 define: DBL_HAS_INFINITY=1 define: DBL_HAS_QUIET_NAN=1 define: DBL_MANT_DIG=53 define: DBL_MAX_10_EXP=308 define: DBL_MAX_EXP=1024 define: DBL_MAX=1.7976931348623157e+308 define: DBL_MIN_10_EXP=(-307) define: DBL_MIN_EXP=(-1021) define: DBL_MIN=2.2250738585072014e-308 define: DECIMAL_DIG=LDBL_DECIMAL_DIG define: __DEPRECATED=1 define: ELF=1 define: __EXCEPTIONS=1 define: FINITE_MATH_ONLY=0 define: FLOAT128=1 define: FLT_DECIMAL_DIG=9 define: FLT_DENORM_MIN=1.40129846e-45F define: FLT_DIG=6 define: FLT_EPSILON=1.19209290e-7F define: FLT_EVAL_METHOD=0 define: FLT_HAS_DENORM=1 define: FLT_HAS_INFINITY=1 define: FLT_HAS_QUIET_NAN=1 define: FLT_MANT_DIG=24 define: FLT_MAX_10_EXP=38 define: FLT_MAX_EXP=128 define: FLT_MAX=3.40282347e+38F define: FLT_MIN_10_EXP=(-37) define: FLT_MIN_EXP=(-125) define: FLT_MIN=1.17549435e-38F define: FLT_RADIX=2 define: FXSR=1 define: GCC_ASM_FLAG_OUTPUTS=1 define: __GCC_ATOMIC_BOOL_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR_LOCK_FREE=2 define: __GCC_ATOMIC_INT_LOCK_FREE=2 define: __GCC_ATOMIC_LLONG_LOCK_FREE=2 define: __GCC_ATOMIC_LONG_LOCK_FREE=2 define: __GCC_ATOMIC_POINTER_LOCK_FREE=2 define: __GCC_ATOMIC_SHORT_LOCK_FREE=2 define: __GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: __GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 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: GNUC_GNU_INLINE=1 define: GNUC_MINOR=2 define: GNUC_PATCHLEVEL=1 define: GNUC=4 define: GNUG=4 define: __GXX_ABI_VERSION=1002 define: GXX_EXPERIMENTAL_CXX0X=1 define: __GXX_RTTI=1 define: GXX_WEAK=1 define: INT16_C_SUFFIX= define: INT16_FMTd="hd" define: INT16_FMTi="hi" define: INT16_MAX=32767 define: INT16_TYPE=short define: INT32_C_SUFFIX= define: INT32_FMTd="d" define: INT32_FMTi="i" define: INT32_MAX=2147483647 define: INT32_TYPE=int define: INT64_C_SUFFIX=L define: INT64_FMTd="ld" define: INT64_FMTi="li" define: INT64_MAX=9223372036854775807L define: INT64_TYPE=long int define: INT8_C_SUFFIX= define: INT8_FMTd="hhd" define: INT8_FMTi="hhi" define: INT8_MAX=127 define: INT8_TYPE=signed char define: INTMAX_C_SUFFIX=L define: INTMAX_FMTd="ld" define: INTMAX_FMTi="li" define: INTMAX_MAX=9223372036854775807L define: INTMAX_TYPE=long int define: INTMAX_WIDTH=64 define: INTPTR_FMTd="ld" define: INTPTR_FMTi="li" define: INTPTR_MAX=9223372036854775807L define: INTPTR_TYPE=long int define: INTPTR_WIDTH=64 define: INT_FAST16_FMTd="hd" define: INT_FAST16_FMTi="hi" define: INT_FAST16_MAX=32767 define: INT_FAST16_TYPE=short define: INT_FAST32_FMTd="d" define: INT_FAST32_FMTi="i" define: INT_FAST32_MAX=2147483647 define: INT_FAST32_TYPE=int define: INT_FAST64_FMTd="ld" define: INT_FAST64_FMTi="li" define: INT_FAST64_MAX=9223372036854775807L define: INT_FAST64_TYPE=long int define: INT_FAST8_FMTd="hhd" define: INT_FAST8_FMTi="hhi" define: INT_FAST8_MAX=127 define: INT_FAST8_TYPE=signed char define: INT_LEAST16_FMTd="hd" define: INT_LEAST16_FMTi="hi" define: INT_LEAST16_MAX=32767 define: INT_LEAST16_TYPE=short define: INT_LEAST32_FMTd="d" define: INT_LEAST32_FMTi="i" define: INT_LEAST32_MAX=2147483647 define: INT_LEAST32_TYPE=int define: INT_LEAST64_FMTd="ld" define: INT_LEAST64_FMTi="li" define: INT_LEAST64_MAX=9223372036854775807L define: INT_LEAST64_TYPE=long int define: INT_LEAST8_FMTd="hhd" define: INT_LEAST8_FMTi="hhi" define: INT_LEAST8_MAX=127 define: INT_LEAST8_TYPE=signed char define: INT_MAX=2147483647 define: LDBL_DECIMAL_DIG=21 define: LDBL_DENORM_MIN=3.64519953188247460253e-4951L define: LDBL_DIG=18 define: LDBL_EPSILON=1.08420217248550443401e-19L define: LDBL_HAS_DENORM=1 define: LDBL_HAS_INFINITY=1 define: LDBL_HAS_QUIET_NAN=1 define: LDBL_MANT_DIG=64 define: LDBL_MAX_10_EXP=4932 define: LDBL_MAX_EXP=16384 define: LDBL_MAX=1.18973149535723176502e+4932L define: LDBL_MIN_10_EXP=(-4931) define: LDBL_MIN_EXP=(-16381) define: LDBL_MIN=3.36210314311209350626e-4932L define: LITTLE_ENDIAN=1 define: LONG_LONG_MAX=9223372036854775807LL define: LONG_MAX=9223372036854775807L define: LP64=1 define: MMX=1 define: NO_INLINE=1 define: __NO_MATH_INLINES=1 define: __OBJC_BOOL_IS_BOOL=0 define: __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 define: __OPENCL_MEMORY_SCOPE_DEVICE=2 define: __OPENCL_MEMORY_SCOPE_SUB_GROUP=4 define: __OPENCL_MEMORY_SCOPE_WORK_GROUP=1 define: __OPENCL_MEMORY_SCOPE_WORK_ITEM=0 define: ORDER_BIG_ENDIAN=4321 define: ORDER_LITTLE_ENDIAN=1234 define: ORDER_PDP_ENDIAN=3412 define: POINTER_WIDTH=64 define: __PRAGMA_REDEFINE_EXTNAME=1 define: PTRDIFF_FMTd="ld" define: PTRDIFF_FMTi="li" define: PTRDIFF_MAX=9223372036854775807L define: PTRDIFF_TYPE=long int define: PTRDIFF_WIDTH=64 define: REGISTER_PREFIX= define: SCHAR_MAX=127 define: __SEG_FS=1 define: __SEG_GS=1 define: SHRT_MAX=32767 define: SIG_ATOMIC_MAX=2147483647 define: SIG_ATOMIC_WIDTH=32 define: SIZEOF_DOUBLE=8 define: SIZEOF_FLOAT128=16 define: SIZEOF_FLOAT=4 define: SIZEOF_INT128=16 define: SIZEOF_INT=4 define: SIZEOF_LONG_DOUBLE=16 define: SIZEOF_LONG_LONG=8 define: SIZEOF_LONG=8 define: SIZEOF_POINTER=8 define: SIZEOF_PTRDIFF_T=8 define: SIZEOF_SHORT=2 define: SIZEOF_SIZE_T=8 define: SIZEOF_WCHAR_T=4 define: SIZEOF_WINT_T=4 define: SIZE_FMTX="lX" define: SIZE_FMTo="lo" define: SIZE_FMTu="lu" define: SIZE_FMTx="lx" define: SIZE_MAX=18446744073709551615UL define: SIZE_TYPE=long unsigned int define: SIZE_WIDTH=64 define: SSE2_MATH=1 define: SSE2=1 define: SSE_MATH=1 define: SSE=1 define: STDCPP_DEFAULT_NEW_ALIGNMENT=16UL define: STDC_HOSTED=1 define: STDC_UTF_16=1 define: STDC_UTF_32=1 define: STDC=1 define: STRICT_ANSI=1 define: UINT16_C_SUFFIX= define: UINT16_FMTX="hX" define: UINT16_FMTo="ho" define: UINT16_FMTu="hu" define: UINT16_FMTx="hx" define: UINT16_MAX=65535 define: UINT16_TYPE=unsigned short define: UINT32_C_SUFFIX=U define: UINT32_FMTX="X" define: UINT32_FMTo="o" define: UINT32_FMTu="u" define: UINT32_FMTx="x" define: UINT32_MAX=4294967295U define: UINT32_TYPE=unsigned int define: UINT64_C_SUFFIX=UL define: UINT64_FMTX="lX" define: UINT64_FMTo="lo" define: UINT64_FMTu="lu" define: UINT64_FMTx="lx" define: UINT64_MAX=18446744073709551615UL define: UINT64_TYPE=long unsigned int define: UINT8_C_SUFFIX= define: UINT8_FMTX="hhX" define: UINT8_FMTo="hho" define: UINT8_FMTu="hhu" define: UINT8_FMTx="hhx" define: UINT8_MAX=255 define: UINT8_TYPE=unsigned char define: UINTMAX_C_SUFFIX=UL define: UINTMAX_FMTX="lX" define: UINTMAX_FMTo="lo" define: UINTMAX_FMTu="lu" define: UINTMAX_FMTx="lx" define: UINTMAX_MAX=18446744073709551615UL define: UINTMAX_TYPE=long unsigned int define: UINTMAX_WIDTH=64 define: UINTPTR_FMTX="lX" define: UINTPTR_FMTo="lo" define: UINTPTR_FMTu="lu" define: UINTPTR_FMTx="lx" define: UINTPTR_MAX=18446744073709551615UL define: UINTPTR_TYPE=long unsigned int define: UINTPTR_WIDTH=64 define: UINT_FAST16_FMTX="hX" define: UINT_FAST16_FMTo="ho" define: UINT_FAST16_FMTu="hu" define: UINT_FAST16_FMTx="hx" define: UINT_FAST16_MAX=65535 define: UINT_FAST16_TYPE=unsigned short define: UINT_FAST32_FMTX="X" define: UINT_FAST32_FMTo="o" define: UINT_FAST32_FMTu="u" define: UINT_FAST32_FMTx="x" define: UINT_FAST32_MAX=4294967295U define: UINT_FAST32_TYPE=unsigned int define: UINT_FAST64_FMTX="lX" define: UINT_FAST64_FMTo="lo" define: UINT_FAST64_FMTu="lu" define: UINT_FAST64_FMTx="lx" define: UINT_FAST64_MAX=18446744073709551615UL define: UINT_FAST64_TYPE=long unsigned int define: UINT_FAST8_FMTX="hhX" define: UINT_FAST8_FMTo="hho" define: UINT_FAST8_FMTu="hhu" define: UINT_FAST8_FMTx="hhx" define: UINT_FAST8_MAX=255 define: UINT_FAST8_TYPE=unsigned char define: UINT_LEAST16_FMTX="hX" define: UINT_LEAST16_FMTo="ho" define: UINT_LEAST16_FMTu="hu" define: UINT_LEAST16_FMTx="hx" define: UINT_LEAST16_MAX=65535 define: UINT_LEAST16_TYPE=unsigned short define: UINT_LEAST32_FMTX="X" define: UINT_LEAST32_FMTo="o" define: UINT_LEAST32_FMTu="u" define: UINT_LEAST32_FMTx="x" define: UINT_LEAST32_MAX=4294967295U define: UINT_LEAST32_TYPE=unsigned int define: UINT_LEAST64_FMTX="lX" define: UINT_LEAST64_FMTo="lo" define: UINT_LEAST64_FMTu="lu" define: UINT_LEAST64_FMTx="lx" define: UINT_LEAST64_MAX=18446744073709551615UL define: UINT_LEAST64_TYPE=long unsigned int define: UINT_LEAST8_FMTX="hhX" define: UINT_LEAST8_FMTo="hho" define: UINT_LEAST8_FMTu="hhu" define: UINT_LEAST8_FMTx="hhx" define: UINT_LEAST8_MAX=255 define: UINT_LEAST8_TYPE=unsigned char define: USER_LABEL_PREFIX= define: VERSION="Clang 10.0.0 " define: WCHAR_MAX=2147483647 define: WCHAR_TYPE=int define: WCHAR_WIDTH=32 define: WINT_MAX=4294967295U define: WINT_TYPE=unsigned int define: WINT_UNSIGNED=1 define: WINT_WIDTH=32 define: __amd64=1 define: amd64=1 define: clang=1 define: clang_major=10 define: clang_minor=0 define: clang_patchlevel=0 define: clang_version="10.0.0 " define: _code_model_small=1 define: __cplusplus=201402L define: gnu_linux=1 define: __k8=1 define: k8=1 define: __linux=1 define: linux=1 define: llvm=1 define: private_extern=extern define: __seg_fs=attribute((address_space(257))) define: __seg_gs=attribute((address_space(256))) define: tune_k8=1 define: __unix=1 define: unix=1 define: __x86_64=1 define: x86_64=1 other: --clang other: --clang_version=100000 stdver: c++14 intelliSenseMode: linux-clang-x64 Checking for syntax errors: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp Queueing IntelliSense update for files in translation unit of: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp cpptools/finishUpdateSquiggles Error squiggle count: 1951 Error squiggles will be disabled in: file:///mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp Update IntelliSense time (sec): 76.122 cpptools/getCodeActions: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3437) cpptools/getFoldingRanges: /mnt/fileroot/qiuye.gan/AndroidR/frameworks/av/media/libstagefright/ACodec.cpp (id: 3438)
it spends long time to load symbols (76.122), while sourceinsight can load it immediately.
The IntelliSense update time is different from "document symbols". One problem might be if the files are being accessed remotely, ideally, the files should exist on the remote Linux OS. Another issue is that the 1951 error squiggles, so it seems like IntelliSense is not configured correctly, which could contribute to slower results due to extra error handling.
You need to add a flag to compilerArgs to make IntelliSense target linux-clang-arm64 instead of linux-clang-x64 -- that's probably why you're getting the 1951 error squiggles. You should check what flag your compiler is using.
thx, I found that it looks faster when using clang-arm64, but it only works for setting first,it will change to x64 later.
my settings:

log: [7/15/2022, 11:34:22 AM] For C source files, IntelliSenseMode was changed from "linux-clang-arm64" to "linux-clang-x64" based on compiler args and querying compilerPath: "/usr/bin/clang" [7/15/2022, 11:34:22 AM] IntelliSenseMode was changed because it didn't match the detected compiler. Consider setting "compilerPath" instead. Set "compilerPath" to "" to disable detection of system includes and defines. [7/15/2022, 11:34:27 AM] For C++ source files, IntelliSenseMode was changed from "linux-clang-arm64" to "linux-clang-x64" based on compiler args and querying compilerPath: "/usr/bin/clang" [7/15/2022, 11:34:27 AM] IntelliSenseMode was changed because it didn't match the detected compiler. Consider setting "compilerPath" instead. Set "compilerPath" to "" to disable detection of system includes and defines.
And I found that OUTPUT is showing:

it took a long time, which I think it's not necessary to query
Well, I can accept for loading symbols long time when opening a source file, but not for losing the symbols some time later until loading again, and that will go on and on.
We're detecting that your clang compiler builds x64 by default and there should be args you can add to compilerArgs to make it cross-compile for arm64.
What do you mean by "losing symbols"? Can you provide logging or a screenshot for that case?
I may have reproed the bug. It says "No symbols found in document" in the outline view.
The bug stopped reproing. Any idea how to get it back into the bad state?
hi, I have found what codes like that will cause the symbols can not be loaded:
fun1()
{ //l_bracket0
.....
#if 1
if (condition1) { //l_bracket1
#else
if (condition2) { //l_bracket2
#endif
....
} //r_bracket1
} //r_bracket2
fun2()
{
}
symbol of fun2 can not be loaded, because l_bracket2 <->r_bracket1, l_bracket1 <-> r_bracket2
but l_bracket0 has none!
Actually, l_bracket1 <-> r_bracket1 l_bracket0 <-> r_bracket2
Thanks for reporting this. I've filed a bug on our shared VS parser at https://developercommunity.visualstudio.com/t/C-IntelliSense-has-no-document-symbol/10104429 .
https://github.com/microsoft/vscode-cpptools/issues/8613 and https://github.com/microsoft/vscode-cpptools/issues/3681 are related bugs, but they have different root causes.
Thx, now, there are 3 questions left:
- when openning a source code from remote ubuntu, it uses a long time to loading symbols, and then can not find the symbols with Ctrl+shift+O.
- after loading the symbols for some time, it will lost the symbols until loading again
- if I add a new function, outline loads the function symbols with a long time
question 1 and 3 should be the same reasion.
And now I have set the config like this:

then, it looks faster than before,and it takes about 1 minute but not immediately, the reasion may be that:
include: /mnt/fileroot/qiuye.gan/toolchains/android_toolchain/sysroot/usr/include/c++/v1
include: /mnt/fileroot/qiuye.gan/toolchains/android_toolchain/sysroot/usr/local/include
include: /mnt/fileroot/qiuye.gan/toolchains/android_toolchain/lib64/clang/11.0.5/include
include: /mnt/fileroot/qiuye.gan/toolchains/android_toolchain/sysroot/usr/include/arm-linux-androideabi
include: /mnt/fileroot/qiuye.gan/toolchains/android_toolchain/sysroot/usr/include
include: /mnt/fileroot/qiuye.gan/AndroidR/xxxxx
define: _GNU_SOURCE=1
define: _ILP32=1
define: __ANDROID_API__=28
define: __ANDROID__=1
define: __APCS_32__=1
define: __ARMEL__=1
define: __ARM_32BIT_STATE=1
define: __ARM_ACLE=200
define: __ARM_ARCH=7
define: __ARM_ARCH_7A__=1
define: __ARM_ARCH_ISA_ARM=1
define: __ARM_ARCH_ISA_THUMB=2
define: __ARM_ARCH_PROFILE='A'
define: __ARM_EABI__=1
define: __ARM_FEATURE_CLZ=1
define: __ARM_FEATURE_DSP=1
define: __ARM_FEATURE_LDREX=0xf
define: __ARM_FEATURE_QBIT=1
define: __ARM_FEATURE_SAT=1
define: __ARM_FEATURE_SIMD32=1
define: __ARM_FEATURE_UNALIGNED=1
define: __ARM_FP=0xc
define: __ARM_FP16_ARGS=1
define: __ARM_FP16_FORMAT_IEEE=1
define: __ARM_NEON=1
define: __ARM_NEON_FP=0x4
define: __ARM_NEON__=1
define: __ARM_PCS=1
define: __ARM_SIZEOF_MINIMAL_ENUM=4
define: __ARM_SIZEOF_WCHAR_T=4
define: __ARM_VFPV2__=1
define: __ARM_VFPV3__=1
define: __ATOMIC_ACQUIRE=2
define: __ATOMIC_ACQ_REL=4
define: __ATOMIC_CONSUME=1
define: __ATOMIC_RELAXED=0
define: __ATOMIC_RELEASE=3
define: __ATOMIC_SEQ_CST=5
define: __BIGGEST_ALIGNMENT__=8
define: __BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__
define: __CHAR16_TYPE__=unsigned short
define: __CHAR32_TYPE__=unsigned int
define: __CHAR_BIT__=8
define: __CHAR_UNSIGNED__=1
define: __CLANG_ATOMIC_BOOL_LOCK_FREE=2
define: __CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2
define: __CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2
define: __CLANG_ATOMIC_CHAR_LOCK_FREE=2
define: __CLANG_ATOMIC_INT_LOCK_FREE=2
define: __CLANG_ATOMIC_LLONG_LOCK_FREE=2
define: __CLANG_ATOMIC_LONG_LOCK_FREE=2
define: __CLANG_ATOMIC_POINTER_LOCK_FREE=2
define: __CLANG_ATOMIC_SHORT_LOCK_FREE=2
define: __CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2
define: __CONSTANT_CFSTRINGS__=1
define: __DBL_DECIMAL_DIG__=17
define: __DBL_DENORM_MIN__=4.9406564584124654e-324
define: __DBL_DIG__=15
define: __DBL_EPSILON__=2.2204460492503131e-16
define: __DBL_HAS_DENORM__=1
define: __DBL_HAS_INFINITY__=1
define: __DBL_HAS_QUIET_NAN__=1
define: __DBL_MANT_DIG__=53
define: __DBL_MAX_10_EXP__=308
define: __DBL_MAX_EXP__=1024
define: __DBL_MAX__=1.7976931348623157e+308
define: __DBL_MIN_10_EXP__=(-307)
define: __DBL_MIN_EXP__=(-1021)
define: __DBL_MIN__=2.2250738585072014e-308
define: __DECIMAL_DIG__=__LDBL_DECIMAL_DIG__
define: __DEPRECATED=1
define: __ELF__=1
define: __EXCEPTIONS=1
define: __FINITE_MATH_ONLY__=0
define: __FLT16_DECIMAL_DIG__=5
define: __FLT16_DENORM_MIN__=5.9604644775390625e-8F16
define: __FLT16_DIG__=3
define: __FLT16_EPSILON__=9.765625e-4F16
define: __FLT16_HAS_DENORM__=1
define: __FLT16_HAS_INFINITY__=1
define: __FLT16_HAS_QUIET_NAN__=1
define: __FLT16_MANT_DIG__=11
define: __FLT16_MAX_10_EXP__=4
define: __FLT16_MAX_EXP__=16
define: __FLT16_MAX__=6.5504e+4F16
define: __FLT16_MIN_10_EXP__=(-4)
define: __FLT16_MIN_EXP__=(-13)
define: __FLT16_MIN__=6.103515625e-5F16
define: __FLT_DECIMAL_DIG__=9
define: __FLT_DENORM_MIN__=1.40129846e-45F
define: __FLT_DIG__=6
define: __FLT_EPSILON__=1.19209290e-7F
define: __FLT_EVAL_METHOD__=0
define: __FLT_HAS_DENORM__=1
define: __FLT_HAS_INFINITY__=1
define: __FLT_HAS_QUIET_NAN__=1
define: __FLT_MANT_DIG__=24
define: __FLT_MAX_10_EXP__=38
define: __FLT_MAX_EXP__=128
define: __FLT_MAX__=3.40282347e+38F
define: __FLT_MIN_10_EXP__=(-37)
define: __FLT_MIN_EXP__=(-125)
define: __FLT_MIN__=1.17549435e-38F
define: __FLT_RADIX__=2
define: __GCC_ATOMIC_BOOL_LOCK_FREE=2
define: __GCC_ATOMIC_CHAR16_T_LOCK_FREE=2
define: __GCC_ATOMIC_CHAR32_T_LOCK_FREE=2
define: __GCC_ATOMIC_CHAR_LOCK_FREE=2
define: __GCC_ATOMIC_INT_LOCK_FREE=2
define: __GCC_ATOMIC_LLONG_LOCK_FREE=2
define: __GCC_ATOMIC_LONG_LOCK_FREE=2
define: __GCC_ATOMIC_POINTER_LOCK_FREE=2
define: __GCC_ATOMIC_SHORT_LOCK_FREE=2
define: __GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1
define: __GCC_ATOMIC_WCHAR_T_LOCK_FREE=2
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: __GNUC_GNU_INLINE__=1
define: __GNUC_MINOR__=2
define: __GNUC_PATCHLEVEL__=1
define: __GNUC__=4
define: __GNUG__=4
define: __GXX_ABI_VERSION=1002
define: __GXX_EXPERIMENTAL_CXX0X__=1
define: __GXX_RTTI=1
define: __GXX_WEAK__=1
define: __ILP32__=1
define: __INT16_C_SUFFIX__=
define: __INT16_FMTd__="hd"
define: __INT16_FMTi__="hi"
define: __INT16_MAX__=32767
define: __INT16_TYPE__=short
define: __INT32_C_SUFFIX__=
define: __INT32_FMTd__="d"
define: __INT32_FMTi__="i"
define: __INT32_MAX__=2147483647
define: __INT32_TYPE__=int
define: __INT64_C_SUFFIX__=LL
define: __INT64_FMTd__="lld"
define: __INT64_FMTi__="lli"
define: __INT64_MAX__=9223372036854775807LL
define: __INT64_TYPE__=long long int
define: __INT8_C_SUFFIX__=
define: __INT8_FMTd__="hhd"
define: __INT8_FMTi__="hhi"
define: __INT8_MAX__=127
define: __INT8_TYPE__=signed char
define: __INTMAX_C_SUFFIX__=LL
define: __INTMAX_FMTd__="lld"
define: __INTMAX_FMTi__="lli"
define: __INTMAX_MAX__=9223372036854775807LL
define: __INTMAX_TYPE__=long long int
define: __INTMAX_WIDTH__=64
define: __INTPTR_FMTd__="d"
define: __INTPTR_FMTi__="i"
define: __INTPTR_MAX__=2147483647
define: __INTPTR_TYPE__=int
define: __INTPTR_WIDTH__=32
define: __INT_FAST16_FMTd__="hd"
define: __INT_FAST16_FMTi__="hi"
define: __INT_FAST16_MAX__=32767
define: __INT_FAST16_TYPE__=short
define: __INT_FAST32_FMTd__="d"
define: __INT_FAST32_FMTi__="i"
define: __INT_FAST32_MAX__=2147483647
define: __INT_FAST32_TYPE__=int
define: __INT_FAST64_FMTd__="lld"
define: __INT_FAST64_FMTi__="lli"
define: __INT_FAST64_MAX__=9223372036854775807LL
define: __INT_FAST64_TYPE__=long long int
define: __INT_FAST8_FMTd__="hhd"
define: __INT_FAST8_FMTi__="hhi"
define: __INT_FAST8_MAX__=127
define: __INT_FAST8_TYPE__=signed char
define: __INT_LEAST16_FMTd__="hd"
define: __INT_LEAST16_FMTi__="hi"
define: __INT_LEAST16_MAX__=32767
define: __INT_LEAST16_TYPE__=short
define: __INT_LEAST32_FMTd__="d"
define: __INT_LEAST32_FMTi__="i"
define: __INT_LEAST32_MAX__=2147483647
define: __INT_LEAST32_TYPE__=int
define: __INT_LEAST64_FMTd__="lld"
define: __INT_LEAST64_FMTi__="lli"
define: __INT_LEAST64_MAX__=9223372036854775807LL
define: __INT_LEAST64_TYPE__=long long int
define: __INT_LEAST8_FMTd__="hhd"
define: __INT_LEAST8_FMTi__="hhi"
define: __INT_LEAST8_MAX__=127
define: __INT_LEAST8_TYPE__=signed char
define: __INT_MAX__=2147483647
define: __LDBL_DECIMAL_DIG__=17
define: __LDBL_DENORM_MIN__=4.9406564584124654e-324L
define: __LDBL_DIG__=15
define: __LDBL_EPSILON__=2.2204460492503131e-16L
define: __LDBL_HAS_DENORM__=1
define: __LDBL_HAS_INFINITY__=1
define: __LDBL_HAS_QUIET_NAN__=1
define: __LDBL_MANT_DIG__=53
define: __LDBL_MAX_10_EXP__=308
define: __LDBL_MAX_EXP__=1024
define: __LDBL_MAX__=1.7976931348623157e+308L
define: __LDBL_MIN_10_EXP__=(-307)
define: __LDBL_MIN_EXP__=(-1021)
define: __LDBL_MIN__=2.2250738585072014e-308L
define: __LITTLE_ENDIAN__=1
define: __LONG_LONG_MAX__=9223372036854775807LL
define: __LONG_MAX__=2147483647L
define: __NO_INLINE__=1
define: __OBJC_BOOL_IS_BOOL=0
define: __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3
define: __OPENCL_MEMORY_SCOPE_DEVICE=2
define: __OPENCL_MEMORY_SCOPE_SUB_GROUP=4
define: __OPENCL_MEMORY_SCOPE_WORK_GROUP=1
define: __OPENCL_MEMORY_SCOPE_WORK_ITEM=0
define: __ORDER_BIG_ENDIAN__=4321
define: __ORDER_LITTLE_ENDIAN__=1234
define: __ORDER_PDP_ENDIAN__=3412
define: __PIC__=2
define: __PIE__=2
define: __POINTER_WIDTH__=32
define: __PRAGMA_REDEFINE_EXTNAME=1
define: __PTRDIFF_FMTd__="d"
define: __PTRDIFF_FMTi__="i"
define: __PTRDIFF_MAX__=2147483647
define: __PTRDIFF_TYPE__=int
define: __PTRDIFF_WIDTH__=32
define: __REGISTER_PREFIX__=
define: __SCHAR_MAX__=127
define: __SHRT_MAX__=32767
define: __SIG_ATOMIC_MAX__=2147483647
define: __SIG_ATOMIC_WIDTH__=32
define: __SIZEOF_DOUBLE__=8
define: __SIZEOF_FLOAT__=4
define: __SIZEOF_INT__=4
define: __SIZEOF_LONG_DOUBLE__=8
define: __SIZEOF_LONG_LONG__=8
define: __SIZEOF_LONG__=4
define: __SIZEOF_POINTER__=4
define: __SIZEOF_PTRDIFF_T__=4
define: __SIZEOF_SHORT__=2
define: __SIZEOF_SIZE_T__=4
define: __SIZEOF_WCHAR_T__=4
define: __SIZEOF_WINT_T__=4
define: __SIZE_FMTX__="X"
define: __SIZE_FMTo__="o"
define: __SIZE_FMTu__="u"
define: __SIZE_FMTx__="x"
define: __SIZE_MAX__=4294967295U
define: __SIZE_TYPE__=unsigned int
define: __SIZE_WIDTH__=32
define: __STDCPP_DEFAULT_NEW_ALIGNMENT__=8U
define: __STDC_HOSTED__=1
define: __STDC_UTF_16__=1
define: __STDC_UTF_32__=1
define: __STDC__=1
define: __STRICT_ANSI__=1
define: __THUMB_INTERWORK__=1
define: __UINT16_C_SUFFIX__=
define: __UINT16_FMTX__="hX"
define: __UINT16_FMTo__="ho"
define: __UINT16_FMTu__="hu"
define: __UINT16_FMTx__="hx"
define: __UINT16_MAX__=65535
define: __UINT16_TYPE__=unsigned short
define: __UINT32_C_SUFFIX__=U
define: __UINT32_FMTX__="X"
define: __UINT32_FMTo__="o"
define: __UINT32_FMTu__="u"
define: __UINT32_FMTx__="x"
define: __UINT32_MAX__=4294967295U
define: __UINT32_TYPE__=unsigned int
define: __UINT64_C_SUFFIX__=ULL
define: __UINT64_FMTX__="llX"
define: __UINT64_FMTo__="llo"
define: __UINT64_FMTu__="llu"
define: __UINT64_FMTx__="llx"
define: __UINT64_MAX__=18446744073709551615ULL
define: __UINT64_TYPE__=long long unsigned int
define: __UINT8_C_SUFFIX__=
define: __UINT8_FMTX__="hhX"
define: __UINT8_FMTo__="hho"
define: __UINT8_FMTu__="hhu"
define: __UINT8_FMTx__="hhx"
define: __UINT8_MAX__=255
define: __UINT8_TYPE__=unsigned char
define: __UINTMAX_C_SUFFIX__=ULL
define: __UINTMAX_FMTX__="llX"
define: __UINTMAX_FMTo__="llo"
define: __UINTMAX_FMTu__="llu"
define: __UINTMAX_FMTx__="llx"
define: __UINTMAX_MAX__=18446744073709551615ULL
define: __UINTMAX_TYPE__=long long unsigned int
define: __UINTMAX_WIDTH__=64
define: __UINTPTR_FMTX__="X"
define: __UINTPTR_FMTo__="o"
define: __UINTPTR_FMTu__="u"
define: __UINTPTR_FMTx__="x"
define: __UINTPTR_MAX__=4294967295U
define: __UINTPTR_TYPE__=unsigned int
define: __UINTPTR_WIDTH__=32
define: __UINT_FAST16_FMTX__="hX"
define: __UINT_FAST16_FMTo__="ho"
define: __UINT_FAST16_FMTu__="hu"
define: __UINT_FAST16_FMTx__="hx"
define: __UINT_FAST16_MAX__=65535
define: __UINT_FAST16_TYPE__=unsigned short
define: __UINT_FAST32_FMTX__="X"
define: __UINT_FAST32_FMTo__="o"
define: __UINT_FAST32_FMTu__="u"
define: __UINT_FAST32_FMTx__="x"
define: __UINT_FAST32_MAX__=4294967295U
define: __UINT_FAST32_TYPE__=unsigned int
define: __UINT_FAST64_FMTX__="llX"
define: __UINT_FAST64_FMTo__="llo"
define: __UINT_FAST64_FMTu__="llu"
define: __UINT_FAST64_FMTx__="llx"
define: __UINT_FAST64_MAX__=18446744073709551615ULL
define: __UINT_FAST64_TYPE__=long long unsigned int
define: __UINT_FAST8_FMTX__="hhX"
define: __UINT_FAST8_FMTo__="hho"
define: __UINT_FAST8_FMTu__="hhu"
define: __UINT_FAST8_FMTx__="hhx"
define: __UINT_FAST8_MAX__=255
define: __UINT_FAST8_TYPE__=unsigned char
define: __UINT_LEAST16_FMTX__="hX"
define: __UINT_LEAST16_FMTo__="ho"
define: __UINT_LEAST16_FMTu__="hu"
define: __UINT_LEAST16_FMTx__="hx"
define: __UINT_LEAST16_MAX__=65535
define: __UINT_LEAST16_TYPE__=unsigned short
define: __UINT_LEAST32_FMTX__="X"
define: __UINT_LEAST32_FMTo__="o"
define: __UINT_LEAST32_FMTu__="u"
define: __UINT_LEAST32_FMTx__="x"
define: __UINT_LEAST32_MAX__=4294967295U
define: __UINT_LEAST32_TYPE__=unsigned int
define: __UINT_LEAST64_FMTX__="llX"
define: __UINT_LEAST64_FMTo__="llo"
define: __UINT_LEAST64_FMTu__="llu"
define: __UINT_LEAST64_FMTx__="llx"
define: __UINT_LEAST64_MAX__=18446744073709551615ULL
define: __UINT_LEAST64_TYPE__=long long unsigned int
define: __UINT_LEAST8_FMTX__="hhX"
define: __UINT_LEAST8_FMTo__="hho"
define: __UINT_LEAST8_FMTu__="hhu"
define: __UINT_LEAST8_FMTx__="hhx"
define: __UINT_LEAST8_MAX__=255
define: __UINT_LEAST8_TYPE__=unsigned char
define: __USER_LABEL_PREFIX__=
define: __VERSION__="Android (7155654, based on r399163b1) Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)"
define: __VFP_FP__=1
define: __WCHAR_MAX__=4294967295U
define: __WCHAR_TYPE__=unsigned int
define: __WCHAR_UNSIGNED__=1
define: __WCHAR_WIDTH__=32
define: __WINT_MAX__=4294967295U
define: __WINT_TYPE__=unsigned int
define: __WINT_UNSIGNED__=1
define: __WINT_WIDTH__=32
define: __arm=1
define: __arm__=1
define: __clang__=1
define: __clang_major__=11
define: __clang_minor__=0
define: __clang_patchlevel__=5
define: __clang_version__="11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)"
define: __cplusplus=201402L
define: __linux=1
define: __linux__=1
define: __llvm__=1
define: __pic__=2
define: __pie__=2
define: __private_extern__=extern
define: __unix=1
define: __unix__=1
other: --clang
other: --clang_version=110005
stdver: c++14
intelliSenseMode: linux-clang-arm
it takes long time to traverse header files, which I don't want, I just think of vscode as an editor, not a compiler. Forgive me if I'm wrong for orientation of vscode. Thanks again
and question 2, I have also found the way to reproduce it:
- open a source file(A) until loading all symbols
- add(fix) some codes in a function and keep the file A openning
- open another source file(B)
- change to file A while file B loading the symbols
Then You will see the symbols of File A are all lost in the OUTLINE window, and saying: "Loading document symbols for FILE A"
Loading the symbols takes a minute time,
Then, if I often fix codes in files, and switch files, it will spend too much times.