Chromium Code Reviews| Index: tools/clang/plugins/ChromeClassTester.cpp |
| diff --git a/tools/clang/plugins/ChromeClassTester.cpp b/tools/clang/plugins/ChromeClassTester.cpp |
| index c9388067234f44a1985587dd660edfd1417b1e1c..e41c92a3929245e6b5f532314099f2d3316e7749 100644 |
| --- a/tools/clang/plugins/ChromeClassTester.cpp |
| +++ b/tools/clang/plugins/ChromeClassTester.cpp |
| @@ -157,6 +157,11 @@ ChromeClassTester::LocationType ChromeClassTester::ClassifyLocation( |
| std::replace(filename.begin(), filename.end(), '\\', '/'); |
| #endif |
| + if (options_.check_for_blink) |
|
dcheng
2017/04/17 02:40:57
Hmm, so the potential issue with this is that Blin
tkent
2017/04/17 08:00:23
Ah, I see.
|
| + return LocationType::kBlink; |
| + // TODO(tkent): Remove blink_directories_. We specify "-Xclang |
| + // -plugin-arg-find-bad-constructs -Xclang check-for-blink" in BUILD.gn |
| + // instead. |
| for (const std::string& blink_dir : blink_directories_) { |
| // If any of the allowed directories occur as a component in filename, |
| // this file is allowed. |