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

Unified Diff: tools/gn/c_include_iterator.cc

Issue 1631873003: Check system-include dependencies in GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « AUTHORS ('k') | tools/gn/c_include_iterator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/c_include_iterator.cc
diff --git a/tools/gn/c_include_iterator.cc b/tools/gn/c_include_iterator.cc
index cc3cb35d27f1c0120b979409841a94d2b0c7cff6..28654a7a746a6f52bb734c281202c154b49e4201 100644
--- a/tools/gn/c_include_iterator.cc
+++ b/tools/gn/c_include_iterator.cc
@@ -134,8 +134,7 @@ bool CIncludeIterator::GetNextIncludeString(base::StringPiece* out,
base::StringPiece include_contents;
int begin_char;
IncludeType type = ExtractInclude(line, &include_contents, &begin_char);
- if (type == INCLUDE_USER && !HasNoCheckAnnotation(line)) {
- // Only count user includes for now.
+ if (type != INCLUDE_NONE && !HasNoCheckAnnotation(line)) {
*out = include_contents;
*location = LocationRange(
Location(input_file_,
« no previous file with comments | « AUTHORS ('k') | tools/gn/c_include_iterator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698