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 325390 4ee89b6c76d73e305d2958e30a1c98442b23c907
parent 325389 9d41238dabf42896e32ab1df01cb477f25e207f8
child 325391 8137e66c6c184111d9d0a913a1eaecee2db4a072
push id34962
push usertchou@mozilla.com
push dateFri, 09 Dec 2016 00:07:34 +0000
treeherderautoland@4ee89b6c76d7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersEhsan
bugs1322462
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)) {