Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Sema/SemaCodeComplete.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 9,311 Lines • ▼ Show 20 Lines | for (auto It = FS.dir_begin(Dir, EC); | ||||
break; | break; | ||||
case llvm::sys::fs::file_type::regular_file: | case llvm::sys::fs::file_type::regular_file: | ||||
// Only files that really look like headers. (Except in system dirs). | // Only files that really look like headers. (Except in system dirs). | ||||
if (!IsSystem) { | if (!IsSystem) { | ||||
// Header extensions from Types.def, which we can't depend on here. | // Header extensions from Types.def, which we can't depend on here. | ||||
if (!(Filename.endswith_lower(".h") || | if (!(Filename.endswith_lower(".h") || | ||||
Filename.endswith_lower(".hh") || | Filename.endswith_lower(".hh") || | ||||
Filename.endswith_lower(".hpp") || | Filename.endswith_lower(".hpp") || | ||||
Filename.endswith_lower(".cuh") || | |||||
Filename.endswith_lower(".inc"))) | Filename.endswith_lower(".inc"))) | ||||
break; | break; | ||||
} | } | ||||
AddCompletion(Filename, /*IsDirectory=*/false); | AddCompletion(Filename, /*IsDirectory=*/false); | ||||
break; | break; | ||||
default: | default: | ||||
break; | break; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |