mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
SkipFunctionBodiesScope; improve fuzzy
This commit is contained in:
parent
99fe7c7624
commit
368bd9a283
@ -97,9 +97,10 @@ std::unique_ptr<ClangTranslationUnit> ClangTranslationUnit::Create(
|
|||||||
/*CacheCodeCompletionResults=*/true, g_config->index.comments,
|
/*CacheCodeCompletionResults=*/true, g_config->index.comments,
|
||||||
/*AllowPCHWithCompilerErrors=*/true,
|
/*AllowPCHWithCompilerErrors=*/true,
|
||||||
#if LLVM_VERSION_MAJOR >= 7
|
#if LLVM_VERSION_MAJOR >= 7
|
||||||
SkipFunctionBodiesScope::None,
|
diagnostic ? SkipFunctionBodiesScope::None
|
||||||
|
: SkipFunctionBodiesScope::PreambleAndMainFile,
|
||||||
#else
|
#else
|
||||||
false,
|
!diagnostic,
|
||||||
#endif
|
#endif
|
||||||
/*SingleFileParse=*/false,
|
/*SingleFileParse=*/false,
|
||||||
/*UserFilesAreVolatile=*/true, false,
|
/*UserFilesAreVolatile=*/true, false,
|
||||||
|
@ -31,7 +31,7 @@ void CalculateRoles(std::string_view s, int roles[], int *class_set) {
|
|||||||
if (cur == Other)
|
if (cur == Other)
|
||||||
return None;
|
return None;
|
||||||
// U(U)L is Head while U(U)U is Tail
|
// U(U)L is Head while U(U)U is Tail
|
||||||
return pre == Other || (cur == Upper && (pre == Lower || suc != Upper))
|
return pre == Other || (cur == Upper && (pre == Lower || suc == Lower))
|
||||||
? Head
|
? Head
|
||||||
: Tail;
|
: Tail;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user