From 99647b89e57e3d2ba48d26b8ae6f607d56b91477 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Mon, 1 Jul 2013 10:30:13 +0200 Subject: C++: Add clarifying comment about local include handling Change-Id: I96486983460bb72dc7b7fa993863b2938e99a8b4 Reviewed-by: Erik Verbruggen --- src/plugins/cpptools/cpppreprocessor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/cpptools/cpppreprocessor.cpp') diff --git a/src/plugins/cpptools/cpppreprocessor.cpp b/src/plugins/cpptools/cpppreprocessor.cpp index 825b29ce8c..e16553699a 100644 --- a/src/plugins/cpptools/cpppreprocessor.cpp +++ b/src/plugins/cpptools/cpppreprocessor.cpp @@ -227,6 +227,8 @@ QString CppPreprocessor::resolveFile_helper(const QString &fileName, IncludeType QString path = cleanPath(currentFileInfo.absolutePath()) + fileName; if (checkFile(path)) return path; + // Fall through! "16.2 Source file inclusion" from the standard states to continue + // searching as if this would be a global include. } foreach (const QString &includePath, m_includePaths) { -- cgit v1.2.1