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

Unified Diff: tools/clang/plugins/ChromeClassTester.cpp

Issue 2749043004: Clang plugin: Support for Blink in web/. (Closed)
Patch Set: plugin argument approach Created 3 years, 8 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
« no previous file with comments | « no previous file | tools/clang/plugins/FindBadConstructsAction.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | tools/clang/plugins/FindBadConstructsAction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698