summaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-09-19 09:34:55 +0000
committerEric Liu <ioeric@google.com>2018-09-19 09:34:55 +0000
commit51d76e9ec38a972a7cdf883ef4f24de3a4cd4dcd (patch)
tree71538fd0ba458bd152a1e48b97cb04f733c4b718 /include/clang
parent2282e12e22aaacce2c76666e953b2612333b3f5c (diff)
downloadclang-51d76e9ec38a972a7cdf883ef4f24de3a4cd4dcd.tar.gz
[Sema] Do not load macros from preamble when LoadExternal is false.
Reviewers: ilya-biryukov Reviewed By: ilya-biryukov Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D52079 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Sema/CodeCompleteOptions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Sema/CodeCompleteOptions.h b/include/clang/Sema/CodeCompleteOptions.h
index 1d3bbb4e58..26f7f9d19f 100644
--- a/include/clang/Sema/CodeCompleteOptions.h
+++ b/include/clang/Sema/CodeCompleteOptions.h
@@ -36,7 +36,8 @@ public:
unsigned IncludeBriefComments : 1;
/// Hint whether to load data from the external AST to provide full results.
- /// If false, namespace-level declarations from the preamble may be omitted.
+ /// If false, namespace-level declarations and macros from the preamble may be
+ /// omitted.
unsigned LoadExternal : 1;
/// Include results after corrections (small fix-its), e.g. change '.' to '->'