mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +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,
|
||||
/*AllowPCHWithCompilerErrors=*/true,
|
||||
#if LLVM_VERSION_MAJOR >= 7
|
||||
SkipFunctionBodiesScope::None,
|
||||
diagnostic ? SkipFunctionBodiesScope::None
|
||||
: SkipFunctionBodiesScope::PreambleAndMainFile,
|
||||
#else
|
||||
false,
|
||||
!diagnostic,
|
||||
#endif
|
||||
/*SingleFileParse=*/false,
|
||||
/*UserFilesAreVolatile=*/true, false,
|
||||
|
@ -31,7 +31,7 @@ void CalculateRoles(std::string_view s, int roles[], int *class_set) {
|
||||
if (cur == Other)
|
||||
return None;
|
||||
// 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
|
||||
: Tail;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user