forked from OSchip/llvm-project
[Bash-autocompletion] Fixed typo and add '-' after -Wno
Summary: -Wno-<warning> was autocompleted as -Wno<warning>, so fixed this typo. Differential Revision: https://reviews.llvm.org/D35762 llvm-svn: 308824
This commit is contained in:
parent
5156fcc983
commit
b40f4db4af
|
@ -516,7 +516,7 @@ std::vector<std::string> DiagnosticIDs::getDiagnosticFlags() {
|
|||
std::string Diag(DiagGroupNames + I + 1, DiagGroupNames[I]);
|
||||
I += DiagGroupNames[I] + 1;
|
||||
Res.push_back("-W" + Diag);
|
||||
Res.push_back("-Wno" + Diag);
|
||||
Res.push_back("-Wno-" + Diag);
|
||||
}
|
||||
|
||||
return Res;
|
||||
|
|
|
@ -42,5 +42,5 @@
|
|||
// MRELOCMODEL_CC1: -mrelocation-model
|
||||
// RUN: %clang --autocomplete=-Wma | FileCheck %s -check-prefix=WARNING
|
||||
// WARNING: -Wmacro-redefined -Wmain -Wmain-return-type -Wmalformed-warning-check -Wmany-braces-around-scalar-init -Wmax-unsigned-zero
|
||||
// RUN: %clang --autocomplete=-Wnoinvalid-pp- | FileCheck %s -check-prefix=NOWARNING
|
||||
// NOWARNING: -Wnoinvalid-pp-token
|
||||
// RUN: %clang --autocomplete=-Wno-invalid-pp- | FileCheck %s -check-prefix=NOWARNING
|
||||
// NOWARNING: -Wno-invalid-pp-token
|
||||
|
|
Loading…
Reference in New Issue