Skip to content

Commit b027fbb

Browse files
committed
fix a typo, add more comments regarding resolution of paths
1 parent c1bd6c9 commit b027fbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/ToolchainSettings.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ protected Collection<File> getIncludes(boolean onlyUserDefined) {
167167
ICLanguageSettingEntry[] includePathSettings = languageSetting
168168
.getSettingEntries(ICSettingEntry.INCLUDE_PATH);
169169

170-
// resolve entries first (with CD)
170+
// resolve entries first (with CDT)
171171
for (ICLanguageSettingEntry includePathSetting : CDataUtil
172172
.resolveEntries(includePathSettings, activeConfiguration)) {
173173
// only regard user-specified include paths or only
@@ -176,6 +176,7 @@ protected Collection<File> getIncludes(boolean onlyUserDefined) {
176176
|| (includePathSetting.isBuiltIn() && !onlyUserDefined)) {
177177
File includePath;
178178
if (includePathSetting instanceof ACPathEntry) {
179+
// let CDT do the resolution for all ACPathEntries which should cover all include settings
179180
ACPathEntry includePathEntry = (ACPathEntry) includePathSetting;
180181
includePath = includePathEntry.getLocation().toFile();
181182
} else {

0 commit comments

Comments
 (0)