As with precompiled headers, it's useful for indexers to be able to
continue through compiler errors in dependent modules.
Resolves rdar://69816264
Paths
| Differential D91580
[Frontend] Add flag to allow PCM generation despite compiler errors ClosedPublic Authored by bnbarham on Nov 16 2020, 4:24 PM.
Details Summary As with precompiled headers, it's useful for indexers to be able to Resolves rdar://69816264
Diff Detail Event TimelineComment Actions I'd like if we only had to use one flag (-fallow-pcm-with-compiler-errors) and have it handle both modules and PCH. Could you make the flag also work for PCH and/or add a test that verifies it works? Opts.AllowPCHWithCompilerErrors = Args.hasArg(OPT_fallow_pch_with_errors); to Opts.AllowPCHWithCompilerErrors = Args.hasArg(OPT_fallow_pch_with_errors, OPT_fallow_pcm_with_errors); This revision is now accepted and ready to land.Nov 17 2020, 4:45 PM Closed by commit rG5834996fefc9: [Frontend] Add flag to allow PCM generation despite compiler errors (authored by bnbarham, committed by akyrtzi). · Explain WhyNov 17 2020, 5:30 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 305622 clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/ASTUnit.h
clang/include/clang/Frontend/FrontendActions.h
clang/include/clang/Frontend/FrontendOptions.h
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/FrontendActions.cpp
clang/test/Modules/Inputs/error.h
clang/test/Modules/Inputs/module.map
clang/test/Modules/load-module-with-errors.m
clang/tools/c-index-test/core_main.cpp
clang/tools/libclang/CIndex.cpp
|