mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
UB fixed.
Forgotten return was removed.
This commit is contained in:
parent
47aa9b8e23
commit
b68b063abd
@ -63,7 +63,6 @@ bool ShouldDisplayMethodTiming(MethodType type) {
|
|||||||
type != kMethodType_TextDocumentPublishDiagnostics &&
|
type != kMethodType_TextDocumentPublishDiagnostics &&
|
||||||
type != kMethodType_CqueryPublishInactiveRegions &&
|
type != kMethodType_CqueryPublishInactiveRegions &&
|
||||||
type != kMethodType_Unknown;
|
type != kMethodType_Unknown;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintHelp() {
|
void PrintHelp() {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
using MethodType = std::string;
|
using MethodType = const char*;
|
||||||
extern MethodType kMethodType_Unknown;
|
extern MethodType kMethodType_Unknown;
|
||||||
extern MethodType kMethodType_Exit;
|
extern MethodType kMethodType_Exit;
|
||||||
extern MethodType kMethodType_TextDocumentPublishDiagnostics;
|
extern MethodType kMethodType_TextDocumentPublishDiagnostics;
|
||||||
|
Loading…
Reference in New Issue
Block a user