Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 227 } | 227 } |
| 228 | 228 |
| 229 return false; | 229 return false; |
| 230 } | 230 } |
| 231 | 231 |
| 232 void ChromeClassTester::BuildBannedLists() { | 232 void ChromeClassTester::BuildBannedLists() { |
| 233 banned_namespaces_.emplace("std"); | 233 banned_namespaces_.emplace("std"); |
| 234 banned_namespaces_.emplace("__gnu_cxx"); | 234 banned_namespaces_.emplace("__gnu_cxx"); |
| 235 | 235 |
| 236 blink_directories_.emplace("/third_party/WebKit/"); | 236 blink_directories_.emplace("/third_party/WebKit/"); |
| 237 blink_directories_.emplace("/web/"); | |
|
dcheng
2017/04/12 23:35:27
Is it possible that this will cause us to match th
tkent
2017/04/13 00:18:00
Oh, it's possible. I also found src/ios/web/, whi
tkent
2017/04/13 00:32:38
I think switching behavior by a plugin argument is
| |
| 237 | 238 |
| 238 banned_directories_.emplace("/third_party/"); | 239 banned_directories_.emplace("/third_party/"); |
| 239 banned_directories_.emplace("/native_client/"); | 240 banned_directories_.emplace("/native_client/"); |
| 240 banned_directories_.emplace("/breakpad/"); | 241 banned_directories_.emplace("/breakpad/"); |
| 241 banned_directories_.emplace("/courgette/"); | 242 banned_directories_.emplace("/courgette/"); |
| 242 banned_directories_.emplace("/ppapi/"); | 243 banned_directories_.emplace("/ppapi/"); |
| 243 banned_directories_.emplace("/testing/"); | 244 banned_directories_.emplace("/testing/"); |
| 244 banned_directories_.emplace("/v8/"); | 245 banned_directories_.emplace("/v8/"); |
| 245 banned_directories_.emplace("/sdch/"); | 246 banned_directories_.emplace("/sdch/"); |
| 246 banned_directories_.emplace("/frameworks/"); | 247 banned_directories_.emplace("/frameworks/"); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 } | 335 } |
| 335 | 336 |
| 336 *filename = ploc.getFilename(); | 337 *filename = ploc.getFilename(); |
| 337 return true; | 338 return true; |
| 338 } | 339 } |
| 339 | 340 |
| 340 DiagnosticsEngine::Level ChromeClassTester::getErrorLevel() { | 341 DiagnosticsEngine::Level ChromeClassTester::getErrorLevel() { |
| 341 return diagnostic().getWarningsAsErrors() ? DiagnosticsEngine::Error | 342 return diagnostic().getWarningsAsErrors() ? DiagnosticsEngine::Error |
| 342 : DiagnosticsEngine::Warning; | 343 : DiagnosticsEngine::Warning; |
| 343 } | 344 } |
| OLD | NEW |