aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2020-05-09 12:34:06 +0200
committerKadir Cetinkaya <kadircet@google.com>2020-05-10 13:03:59 +0200
commit35d867a790c2bcf2008b2ee1895ae8af2793b797 (patch)
treeb340afcdfcce86628ab4f9274edb89f8a33cb41e /clang/lib/Frontend/CompilerInvocation.cpp
parent4f4d6c81f8b7505a1f0dcd887f75a7a8225ba52b (diff)
downloadllvm-35d867a790c2bcf2008b2ee1895ae8af2793b797.zip
llvm-35d867a790c2bcf2008b2ee1895ae8af2793b797.tar.gz
llvm-35d867a790c2bcf2008b2ee1895ae8af2793b797.tar.bz2
[clangd] Filter pch related flags coming from the user
Summary: PCH format is unstable, hence using a preamble built with a different version of clang (or even worse, a different compiler) might result in unexpected behaviour. PCH creation on the other hand is something clangd wouldn't want to perform, as it doesn't generate any output files. This patch makes sure clangd drops any PCH related compile commands after parsing the command line args. Fixes https://github.com/clangd/clangd/issues/248 Reviewers: sammccall Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79669
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions