Browse Source

Misc.

pull/517/head
Chao Shen 6 years ago
committed by Fangrui Song
parent
commit
f87ee1323c
  1. 7
      CMakeLists.txt
  2. 2
      src/match.cc

7
CMakeLists.txt

@ -123,15 +123,12 @@ endif()
### Definitions
target_compile_definitions(ccls PRIVATE
LOGURU_WITH_STREAMS=1
LOGURU_FILENAME_WIDTH=18
LOGURU_THREADNAME_WIDTH=13
DEFAULT_RESOURCE_DIRECTORY="${Clang_RESOURCE_DIR}")
### Includes
target_include_directories(ccls PRIVATE
src
target_include_directories(ccls PRIVATE src)
target_include_directories(ccls SYSTEM PRIVATE
third_party
third_party/rapidjson/include)

2
src/match.cc

@ -25,7 +25,7 @@ std::optional<Matcher> Matcher::Create(const std::string& search) {
// std::regex_constants::nosubs
);
return m;
} catch (std::exception e) {
} catch (const std::exception& e) {
Out_ShowLogMessage out;
out.display_type = Out_ShowLogMessage::DisplayType::Show;
out.params.type = lsMessageType::Error;

Loading…
Cancel
Save