Browse Source

Updated FindLibClang.cmake and fixed tests

merge-requests/37/head
eidheim 8 years ago
parent
commit
f63883d995
  1. 2
      cmake/Modules/FindLibClang.cmake
  2. 2
      tests/code_complete_results_test.cc
  3. 2
      tests/completion_string_test.cc

2
cmake/Modules/FindLibClang.cmake

@ -14,7 +14,7 @@
# Known LLVM release numbers.
# most recent versions come first
set(LIBCLANG_KNOWN_LLVM_VERSIONS 5.0.0 5.0
set(LIBCLANG_KNOWN_LLVM_VERSIONS 5.0.1 5.0.0 5.0
4.0.1
4.0.0_1 4.0.0 4.0
3.9.1

2
tests/code_complete_results_test.cc

@ -21,7 +21,7 @@ int main() {
bool substr_found=false;
for(unsigned c=0;c<results.size();c++) {
if(results.get(c).get_chunks()[1].chunk=="substr") {
if(results.get(c).get_chunks()[1].text=="substr") {
substr_found=true;
break;
}

2
tests/completion_string_test.cc

@ -6,7 +6,7 @@ int main() {
{
clangmm::CompletionChunk str("(", clangmm::CompletionChunk_LeftBrace);
assert(str.chunk == "(");
assert(str.text == "(");
assert(str.kind == clangmm::CompletionChunk_LeftBrace);
}

Loading…
Cancel
Save