diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-24 19:08:16 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-24 19:08:16 +0000 |
commit | f44e854ed1e3aa86d2ed6d615ccd109d50ddcff9 (patch) | |
tree | b3fd57ca42856df16b30ce95b7030b5a4e10123c /include/clang/Sema/Action.h | |
parent | cdaa6a8fed16d8bd3987fb4f3304dfb4e52876c3 (diff) |
Introduce basic code-completion support for preprocessor directives,
e.g., after a "#" we'll suggest #if, #ifdef, etc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/Action.h')
-rw-r--r-- | include/clang/Sema/Action.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/Sema/Action.h b/include/clang/Sema/Action.h index 1d3d460b41..d407037515 100644 --- a/include/clang/Sema/Action.h +++ b/include/clang/Sema/Action.h @@ -3205,6 +3205,16 @@ public: IdentifierInfo **SelIdents, unsigned NumSelIdents) { } + /// \brief Code completion for a preprocessor directive. + /// + /// \brief S The scope in which the preprocessor directive is being parsed. + /// \brief InConditional Whether we're inside a preprocessor conditional. + virtual void CodeCompletePreprocessorDirective(Scope *S, bool InConditional) { + } + + /// \brief Code completion while in an area of the translation unit that was + /// excluded due to preprocessor conditionals. + virtual void CodeCompleteInPreprocessorConditionalExclusion(Scope *S) { } //@} }; |