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

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

Issue 2268203002: clang plugin: Remove enforce-in-pdf toggle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | tools/clang/plugins/FindBadConstructsAction.cpp » ('j') | 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 <algorithm> 10 #include <algorithm>
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } 217 }
218 218
219 void ChromeClassTester::BuildBannedLists() { 219 void ChromeClassTester::BuildBannedLists() {
220 banned_namespaces_.emplace("std"); 220 banned_namespaces_.emplace("std");
221 banned_namespaces_.emplace("__gnu_cxx"); 221 banned_namespaces_.emplace("__gnu_cxx");
222 222
223 if (options_.enforce_in_thirdparty_webkit) { 223 if (options_.enforce_in_thirdparty_webkit) {
224 allowed_directories_.emplace("/third_party/WebKit/"); 224 allowed_directories_.emplace("/third_party/WebKit/");
225 } 225 }
226 226
227 if (!options_.enforce_in_pdf) {
228 banned_directories_.emplace("/pdf/");
229 }
230
231 banned_directories_.emplace("/third_party/"); 227 banned_directories_.emplace("/third_party/");
232 banned_directories_.emplace("/native_client/"); 228 banned_directories_.emplace("/native_client/");
233 banned_directories_.emplace("/breakpad/"); 229 banned_directories_.emplace("/breakpad/");
234 banned_directories_.emplace("/courgette/"); 230 banned_directories_.emplace("/courgette/");
235 banned_directories_.emplace("/ppapi/"); 231 banned_directories_.emplace("/ppapi/");
236 banned_directories_.emplace("/testing/"); 232 banned_directories_.emplace("/testing/");
237 banned_directories_.emplace("/v8/"); 233 banned_directories_.emplace("/v8/");
238 banned_directories_.emplace("/sdch/"); 234 banned_directories_.emplace("/sdch/");
239 banned_directories_.emplace("/frameworks/"); 235 banned_directories_.emplace("/frameworks/");
240 236
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 } 323 }
328 324
329 *filename = ploc.getFilename(); 325 *filename = ploc.getFilename();
330 return true; 326 return true;
331 } 327 }
332 328
333 DiagnosticsEngine::Level ChromeClassTester::getErrorLevel() { 329 DiagnosticsEngine::Level ChromeClassTester::getErrorLevel() {
334 return diagnostic().getWarningsAsErrors() ? DiagnosticsEngine::Error 330 return diagnostic().getWarningsAsErrors() ? DiagnosticsEngine::Error
335 : DiagnosticsEngine::Warning; 331 : DiagnosticsEngine::Warning;
336 } 332 }
OLDNEW
« 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