Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: tools/clang/plugins/tests/enum_last_value.txt

Issue 213403010: Re-enable the clang check for enum constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright line. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/clang/plugins/tests/enum_last_value.txt
diff --git a/tools/clang/plugins/tests/enum_last_value.txt b/tools/clang/plugins/tests/enum_last_value.txt
new file mode 100644
index 0000000000000000000000000000000000000000..2d9e51d03917204de51c7b9a42c0b00404e867fd
--- /dev/null
+++ b/tools/clang/plugins/tests/enum_last_value.txt
@@ -0,0 +1,7 @@
+enum_last_value.cpp:11:3: warning: [chromium-style] _LAST/Last constants of enum types must have the maximal value for any constant of that type.
+ kBadOneLast = kBadOneGreen
+ ^
+enum_last_value.cpp:20:3: warning: [chromium-style] _LAST/Last constants of enum types must have the maximal value for any constant of that type.
+ BAD_TWO_LAST = BAD_TWO_GREEN
+ ^
+2 warnings generated.
« tools/clang/plugins/FindBadConstructs.cpp ('K') | « tools/clang/plugins/tests/enum_last_value.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698