aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2021-02-22 09:54:16 +0100
committerJan Svoboda <jan_svoboda@apple.com>2021-02-22 09:54:44 +0100
commit820e0c49fc48024d8b426f4b10b50b5b5659a705 (patch)
tree655992dfab8d4883c2843307e7609b75d6ace49f /clang/lib/Sema/SemaCodeComplete.cpp
parentbf15697e9b66b8f7e6f3f7c510a259651810bd29 (diff)
downloadllvm-820e0c49fc48024d8b426f4b10b50b5b5659a705.zip
llvm-820e0c49fc48024d8b426f4b10b50b5b5659a705.tar.gz
llvm-820e0c49fc48024d8b426f4b10b50b5b5659a705.tar.bz2
[clang][cli] Pass '-Wspir-compat' to cc1 from driver
This patch moves the creation of the '-Wspir-compat' argument from cc1 to the driver. Without this change, generating command line arguments from `CompilerInvocation` cannot be done reliably: there's no way to distinguish whether '-Wspir-compat' was passed to cc1 on the command line (should be generated), or if it was created within `CompilerInvocation::CreateFromArgs` (should not be generated). This is also in line with how other '-W' flags are handled. (This was introduced in D21567.) Reviewed By: Anastasia Differential Revision: https://reviews.llvm.org/D97041
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions