summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-09-13 06:41:18 +0000
committerTed Kremenek <kremenek@apple.com>2012-09-13 06:41:18 +0000
commitb47e6bc597466438fcb960ebcd34eec54bc52edf (patch)
tree161127991c2c7c908f275806da4e4b82bc16ee22 /clang/lib/Frontend/CompilerInvocation.cpp
parent17674ec8c6631c4b5d645ccf3ad1e39b633095c4 (diff)
downloadbcm5719-llvm-b47e6bc597466438fcb960ebcd34eec54bc52edf.tar.gz
bcm5719-llvm-b47e6bc597466438fcb960ebcd34eec54bc52edf.zip
Conditionally parse documentation comments in system headers by
passing -fretain-comments-from-system-headers. By default, the compiler no longer parses such documentation comments, as they can result in a noticeable compile time/PCH slowdown. Fixes <rdar://problem/11860820>. llvm-svn: 163778
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 6d6dbfcc286..6d34425e130 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -2151,6 +2151,9 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
Opts.EmitMicrosoftInlineAsm = Args.hasArg(OPT_fenable_experimental_ms_inline_asm);
+ Opts.RetainCommentsFromSystemHeaders =
+ Args.hasArg(OPT_fretain_comments_from_system_headers);
+
unsigned SSP = Args.getLastArgIntValue(OPT_stack_protector, 0, Diags);
switch (SSP) {
default:
OpenPOWER on IntegriCloud