[PATCH] D68912: Adds -Wrange-loop-analysis to -Wall
Mark de Wever via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 1 11:08:36 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd8117542ac57: Adds -Wrange-loop-analysis to -Wall (authored by Mordante).
Changed prior to commit:
https://reviews.llvm.org/D68912?vs=226539&id=235783#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68912/new/
https://reviews.llvm.org/D68912
Files:
clang/include/clang/Basic/DiagnosticGroups.td
clang/test/Misc/warning-wall.c
clang/test/SemaCXX/warn-range-loop-analysis.cpp
Index: clang/test/SemaCXX/warn-range-loop-analysis.cpp
===================================================================
--- clang/test/SemaCXX/warn-range-loop-analysis.cpp
+++ clang/test/SemaCXX/warn-range-loop-analysis.cpp
@@ -1,3 +1,4 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wall -Wno-unused -verify %s
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wloop-analysis -verify %s
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wrange-loop-analysis -verify %s
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wloop-analysis -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
Index: clang/test/Misc/warning-wall.c
===================================================================
--- clang/test/Misc/warning-wall.c
+++ clang/test/Misc/warning-wall.c
@@ -8,7 +8,6 @@
CHECK-NEXT: -Wdelete-non-virtual-dtor
CHECK-NEXT: -Wdelete-non-abstract-non-virtual-dtor
CHECK-NEXT: -Wdelete-abstract-non-virtual-dtor
-CHECK-NEXT: -Wfor-loop-analysis
CHECK-NEXT: -Wformat
CHECK-NEXT: -Wformat-extra-args
CHECK-NEXT: -Wformat-zero-length
@@ -21,6 +20,9 @@
CHECK-NEXT: -Wimplicit-int
CHECK-NEXT: -Winfinite-recursion
CHECK-NEXT: -Wint-in-bool-context
+CHECK-NEXT: -Wloop-analysis
+CHECK-NEXT: -Wfor-loop-analysis
+CHECK-NEXT: -Wrange-loop-analysis
CHECK-NEXT: -Wmismatched-tags
CHECK-NEXT: -Wmissing-braces
CHECK-NEXT: -Wmove
Index: clang/include/clang/Basic/DiagnosticGroups.td
===================================================================
--- clang/include/clang/Basic/DiagnosticGroups.td
+++ clang/include/clang/Basic/DiagnosticGroups.td
@@ -857,11 +857,11 @@
CharSubscript,
Comment,
DeleteNonVirtualDtor,
- ForLoopAnalysis,
Format,
Implicit,
InfiniteRecursion,
IntInBoolContext,
+ LoopAnalysis,
MismatchedTags,
MissingBraces,
Move,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68912.235783.patch
Type: text/x-patch
Size: 1862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200101/d24b4c9a/attachment.bin>
More information about the cfe-commits
mailing list