summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-02-14 04:13:17 +0000
committerNico Weber <nicolasweber@gmx.de>2019-02-14 04:13:17 +0000
commit023dd1eefad3c3b41633e0644df2e0d29f66d728 (patch)
treef2b6d6aa8d5fc4de307b4254447d4e05123c12f4 /clang/lib/Lex/Preprocessor.cpp
parentee704c1d912d1993cae290ec1cf89c64ab468b63 (diff)
downloadbcm5719-llvm-023dd1eefad3c3b41633e0644df2e0d29f66d728.tar.gz
bcm5719-llvm-023dd1eefad3c3b41633e0644df2e0d29f66d728.zip
Print a note to the called macro when diagnosing err_embedded_directive
Fixes PR40713, see there for the motivation for this. Differential Revision: https://reviews.llvm.org/D58161 llvm-svn: 354009
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 95193147b10..577abc1086a 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -102,6 +102,7 @@ Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts,
DisableMacroExpansion = false;
MacroExpansionInDirectivesOverride = false;
InMacroArgs = false;
+ ArgMacro = nullptr;
InMacroArgPreExpansion = false;
NumCachedTokenLexers = 0;
PragmasEnabled = true;
OpenPOWER on IntegriCloud