Bug 1322462 - Ignore the is-NAN testings in libANGLE that clang plugin reports on Windows. r=Ehsan
authorTing-Yu Chou <janus926@gmail.com>
Thu, 08 Dec 2016 22:29:53 +0800
changeset 325423 4ee89b6c76d73e305d2958e30a1c98442b23c907
parent 325422 9d41238dabf42896e32ab1df01cb477f25e207f8
child 325424 8137e66c6c184111d9d0a913a1eaecee2db4a072
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersEhsan
bugs1322462
milestone53.0a1
Bug 1322462 - Ignore the is-NAN testings in libANGLE that clang plugin reports on Windows. r=Ehsan MozReview-Commit-ID: 9pbUpA54dNq
build/clang-plugin/clang-plugin.cpp
--- a/build/clang-plugin/clang-plugin.cpp
+++ b/build/clang-plugin/clang-plugin.cpp
@@ -846,17 +846,18 @@ AST_MATCHER(BinaryOperator, isInSystemHe
   return ASTIsInSystemHeader(Finder->getASTContext(), Node);
 }
 
 /// This matcher will match a list of files.  These files contain
 /// known NaN-testing expressions which we would like to whitelist.
 AST_MATCHER(BinaryOperator, isInWhitelistForNaNExpr) {
   const char* whitelist[] = {
     "SkScalar.h",
-    "json_writer.cpp"
+    "json_writer.cpp",
+    "State.cpp"
   };
 
   SourceLocation Loc = Node.getOperatorLoc();
   auto &SourceManager = Finder->getASTContext().getSourceManager();
   SmallString<1024> FileName = SourceManager.getFilename(Loc);
 
   for (auto itr = std::begin(whitelist); itr != std::end(whitelist); itr++) {
     if (llvm::sys::path::rbegin(FileName)->equals(*itr)) {