Bug 1471285 - [Clang-Tidy 5.0.1] Checker misc-suspicious-missing-comma has faulty test case. r?janx
MozReview-Commit-ID: 2COIi47WQBO
--- a/tools/clang-tidy/test/misc-suspicious-missing-comma.cpp
+++ b/tools/clang-tidy/test/misc-suspicious-missing-comma.cpp
@@ -1,9 +1,9 @@
-
-// misc-suspicious-missing-comma
-const char* software[] = {
- "Firefox",
- "Rust" // There is a missing comma here.
- "Thunderbird",
- "kinto"
+const char* Cartoons[] = {
+ "Bugs Bunny",
+ "Homer Simpson",
+ "Mickey Mouse",
+ "Bart Simpson",
+ "Charlie Brown" // There is a missing comma here.
+ "Fred Flintstone",
+ "Popeye",
};
-
--- a/tools/clang-tidy/test/misc-suspicious-missing-comma.json
+++ b/tools/clang-tidy/test/misc-suspicious-missing-comma.json
@@ -1,1 +1,1 @@
-"[]"
\ No newline at end of file
+"[[\"warning\", \"suspicious string literal, probably missing a comma\", \"misc-suspicious-missing-comma\"]]"
\ No newline at end of file