Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
cmake_modules/ | H | 15-Jun-2021 | - | |||
docs/ | H | 15-Jun-2021 | - | |||
src/ | H | 03-May-2022 | - | |||
tests/ | H | 03-May-2022 | - | |||
.appveyor.sh | H A D | 15-Jun-2021 | 380 | |||
.appveyor.yml | H A D | 15-Jun-2021 | 531 | |||
.clang-format | H A D | 15-Jun-2021 | 222 | |||
.gitignore | H A D | 15-Jun-2021 | 46 | |||
.gitlab-ci.yml | H A D | 15-Jun-2021 | 518 | |||
LICENSE | H A D | 15-Jun-2021 | 1.1 KiB | |||
README.md | H A D | 15-Jun-2021 | 1.5 KiB |
README.md
1# libclangmm 2 3###### an easy-to-use C++ wrapper for libclang 4 5## About ## 6Provides C++ bindings and class structure to the [libclang](http://www.llvm.org) C library. 7 8Developed for [juCi++](https://gitlab.com/cppit/jucipp), a lightweight, platform-independent C++ IDE. 9 10## Dependencies ## 11* libclang 12 13## Installation ## 14See [installation guide](https://gitlab.com/cppit/libclangmm/blob/master/docs/install.md) 15 16## Tests ## 17To run the unit tests: 18```sh 19mkdir build && cd build 20cmake -DBUILD_TESTING=1 .. 21make 22make test 23``` 24 25## Coding style 26Due to poor lambda support in clang-format, a custom clang-format is used with the following patch applied: 27```diff 28diff --git a/lib/Format/ContinuationIndenter.cpp b/lib/Format/ContinuationIndenter.cpp 29index bb8efd61a3..e80a487055 100644 30--- a/lib/Format/ContinuationIndenter.cpp 31+++ b/lib/Format/ContinuationIndenter.cpp 32@@ -276,6 +276,8 @@ LineState ContinuationIndenter::getInitialState(unsigned FirstIndent, 33 } 34 35 bool ContinuationIndenter::canBreak(const LineState &State) { 36+ if(Style.ColumnLimit==0) 37+ return true; 38 const FormatToken &Current = *State.NextToken; 39 const FormatToken &Previous = *Current.Previous; 40 assert(&Previous == Current.Previous); 41@@ -325,6 +327,8 @@ bool ContinuationIndenter::canBreak(const LineState &State) { 42 } 43 44 bool ContinuationIndenter::mustBreak(const LineState &State) { 45+ if(Style.ColumnLimit==0) 46+ return false; 47 const FormatToken &Current = *State.NextToken; 48 const FormatToken &Previous = *Current.Previous; 49 if (Current.MustBreakBefore || Current.is(TT_InlineASMColon)) 50``` 51 52