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 <sys/param.h> | 10 #include <sys/param.h> |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
144 banned_namespaces_.push_back("WebTestRunner"); | 144 banned_namespaces_.push_back("WebTestRunner"); |
145 | 145 |
146 banned_directories_.push_back("third_party/"); | 146 banned_directories_.push_back("third_party/"); |
147 banned_directories_.push_back("native_client/"); | 147 banned_directories_.push_back("native_client/"); |
148 banned_directories_.push_back("breakpad/"); | 148 banned_directories_.push_back("breakpad/"); |
149 banned_directories_.push_back("courgette/"); | 149 banned_directories_.push_back("courgette/"); |
150 banned_directories_.push_back("pdf/"); | 150 banned_directories_.push_back("pdf/"); |
151 banned_directories_.push_back("ppapi/"); | 151 banned_directories_.push_back("ppapi/"); |
152 banned_directories_.push_back("usr/"); | 152 banned_directories_.push_back("usr/"); |
153 banned_directories_.push_back("testing/"); | 153 banned_directories_.push_back("testing/"); |
154 banned_directories_.push_back("googleurl/"); | |
155 banned_directories_.push_back("v8/"); | 154 banned_directories_.push_back("v8/"); |
156 banned_directories_.push_back("dart/"); | 155 banned_directories_.push_back("dart/"); |
157 banned_directories_.push_back("sdch/"); | 156 banned_directories_.push_back("sdch/"); |
158 banned_directories_.push_back("icu4c/"); | 157 banned_directories_.push_back("icu4c/"); |
159 banned_directories_.push_back("frameworks/"); | 158 banned_directories_.push_back("frameworks/"); |
160 | 159 |
161 if (!check_url_directory_) | 160 if (!check_url_directory_) |
Nico
2013/07/25 17:35:59
FindBarConstructs.cpp has this comment:
} e
| |
162 banned_directories_.push_back("url/"); | 161 banned_directories_.push_back("url/"); |
163 | 162 |
164 // Don't check autogenerated headers. | 163 // Don't check autogenerated headers. |
165 // Make puts them below $(builddir_name)/.../gen and geni. | 164 // Make puts them below $(builddir_name)/.../gen and geni. |
166 // Ninja puts them below OUTPUT_DIR/.../gen | 165 // Ninja puts them below OUTPUT_DIR/.../gen |
167 // Xcode has a fixed output directory for everything. | 166 // Xcode has a fixed output directory for everything. |
168 banned_directories_.push_back("gen/"); | 167 banned_directories_.push_back("gen/"); |
169 banned_directories_.push_back("geni/"); | 168 banned_directories_.push_back("geni/"); |
170 banned_directories_.push_back("xcodebuild/"); | 169 banned_directories_.push_back("xcodebuild/"); |
171 | 170 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 PresumedLoc ploc = source_manager.getPresumedLoc(spelling_location); | 294 PresumedLoc ploc = source_manager.getPresumedLoc(spelling_location); |
296 if (ploc.isInvalid()) { | 295 if (ploc.isInvalid()) { |
297 // If we're in an invalid location, we're looking at things that aren't | 296 // If we're in an invalid location, we're looking at things that aren't |
298 // actually stated in the source. | 297 // actually stated in the source. |
299 return false; | 298 return false; |
300 } | 299 } |
301 | 300 |
302 *filename = ploc.getFilename(); | 301 *filename = ploc.getFilename(); |
303 return true; | 302 return true; |
304 } | 303 } |
OLD | NEW |