diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-02-14 05:32:00 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-02-14 05:32:00 +0000 |
commit | 0414b8578e8a967de9d7c5a9916816802e1d2c3b (patch) | |
tree | ea926c2e832fe5351dcbaa959592f7f6d2660c84 /clang/lib/Lex/ModuleMap.cpp | |
parent | 0bbcd8ba2f176ecefa96421391207b1b0beadf26 (diff) | |
download | bcm5719-llvm-0414b8578e8a967de9d7c5a9916816802e1d2c3b.tar.gz bcm5719-llvm-0414b8578e8a967de9d7c5a9916816802e1d2c3b.zip |
[modules] Accept //-style comments in module maps on purpose rather than by
accident, and accept them even when they begin '//*'.
llvm-svn: 229240
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 529c971ff52..018a0b88253 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -89,7 +89,9 @@ ModuleMap::ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags, HeaderSearch &HeaderInfo) : SourceMgr(SourceMgr), Diags(Diags), LangOpts(LangOpts), Target(Target), HeaderInfo(HeaderInfo), BuiltinIncludeDir(nullptr), - CompilingModule(nullptr), SourceModule(nullptr) {} + CompilingModule(nullptr), SourceModule(nullptr) { + MMapLangOpts.LineComment = true; +} ModuleMap::~ModuleMap() { for (llvm::StringMap<Module *>::iterator I = Modules.begin(), |