forked from OSchip/llvm-project
![]() Only the bare name is completed, with no args. For args to be useful we need arg names. These *are* in the tablegen but not currently emitted in usable form, so left this as future work. C++11, C2x, GNU, declspec, MS syntax is supported, with the appropriate spellings of attributes suggested. `#pragma clang attribute` is supported but not terribly useful as we only reach completion if parens are balanced (i.e. the line is not truncated) There's no filtering of which attributes might make sense in this grammatical context (e.g. attached to a function). In code-completion context this is hard to do, and will only work in few cases :-( There's also no filtering by langopts: this is because currently the only way of checking is to try to produce diagnostics, which requires a valid ParsedAttr which is hard to get. This should be fairly simple to fix but requires some tablegen changes to expose the logic without the side-effect. Differential Revision: https://reviews.llvm.org/D107696 |
||
---|---|---|
.. | ||
ARCMigrate.cpp | ||
BuildSystem.cpp | ||
CIndex.cpp | ||
CIndexCXX.cpp | ||
CIndexCodeCompletion.cpp | ||
CIndexDiagnostic.cpp | ||
CIndexDiagnostic.h | ||
CIndexHigh.cpp | ||
CIndexInclusionStack.cpp | ||
CIndexUSRs.cpp | ||
CIndexer.cpp | ||
CIndexer.h | ||
CLog.h | ||
CMakeLists.txt | ||
CXComment.cpp | ||
CXComment.h | ||
CXCompilationDatabase.cpp | ||
CXCursor.cpp | ||
CXCursor.h | ||
CXIndexDataConsumer.cpp | ||
CXIndexDataConsumer.h | ||
CXLoadedDiagnostic.cpp | ||
CXLoadedDiagnostic.h | ||
CXSourceLocation.cpp | ||
CXSourceLocation.h | ||
CXStoredDiagnostic.cpp | ||
CXString.cpp | ||
CXString.h | ||
CXTranslationUnit.h | ||
CXType.cpp | ||
CXType.h | ||
CursorVisitor.h | ||
FatalErrorHandler.cpp | ||
Index_Internal.h | ||
Indexing.cpp | ||
Rewrite.cpp | ||
libclang.map | ||
linker-script-to-export-list.py |