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

Side by Side Diff: tools/clang/plugins/ChromeClassTester.cpp

Issue 24020005: Teach Clang plugin about blink namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A general interface for filtering and only acting on classes in Chromium C++ 5 // A general interface for filtering and only acting on classes in Chromium C++
6 // code. 6 // code.
7 7
8 #include "ChromeClassTester.h" 8 #include "ChromeClassTester.h"
9 9
10 #include <sys/param.h> 10 #include <sys/param.h>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ends_with(filename, ".mm")) { 133 ends_with(filename, ".mm")) {
134 return true; 134 return true;
135 } 135 }
136 136
137 return false; 137 return false;
138 } 138 }
139 139
140 void ChromeClassTester::BuildBannedLists() { 140 void ChromeClassTester::BuildBannedLists() {
141 banned_namespaces_.push_back("std"); 141 banned_namespaces_.push_back("std");
142 banned_namespaces_.push_back("__gnu_cxx"); 142 banned_namespaces_.push_back("__gnu_cxx");
143 banned_namespaces_.push_back("WebTestRunner");
144
145 // We're in the process of renaming WebKit to blink.
Nico 2013/09/19 21:36:42 'TODO: Remove "WebKit" once that's done.'
143 banned_namespaces_.push_back("WebKit"); 146 banned_namespaces_.push_back("WebKit");
144 banned_namespaces_.push_back("WebTestRunner"); 147 banned_namespaces_.push_back("blink");
145 148
146 banned_directories_.push_back("third_party/"); 149 banned_directories_.push_back("third_party/");
147 banned_directories_.push_back("native_client/"); 150 banned_directories_.push_back("native_client/");
148 banned_directories_.push_back("breakpad/"); 151 banned_directories_.push_back("breakpad/");
149 banned_directories_.push_back("courgette/"); 152 banned_directories_.push_back("courgette/");
150 banned_directories_.push_back("pdf/"); 153 banned_directories_.push_back("pdf/");
151 banned_directories_.push_back("ppapi/"); 154 banned_directories_.push_back("ppapi/");
152 banned_directories_.push_back("usr/"); 155 banned_directories_.push_back("usr/");
153 banned_directories_.push_back("testing/"); 156 banned_directories_.push_back("testing/");
154 banned_directories_.push_back("v8/"); 157 banned_directories_.push_back("v8/");
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 PresumedLoc ploc = source_manager.getPresumedLoc(spelling_location); 297 PresumedLoc ploc = source_manager.getPresumedLoc(spelling_location);
295 if (ploc.isInvalid()) { 298 if (ploc.isInvalid()) {
296 // If we're in an invalid location, we're looking at things that aren't 299 // If we're in an invalid location, we're looking at things that aren't
297 // actually stated in the source. 300 // actually stated in the source.
298 return false; 301 return false;
299 } 302 }
300 303
301 *filename = ploc.getFilename(); 304 *filename = ploc.getFilename();
302 return true; 305 return true;
303 } 306 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698