• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmake_modules/H15-Jun-2021-

docs/H15-Jun-2021-

src/H03-May-2022-

tests/H03-May-2022-

.appveyor.shH A D15-Jun-2021380

.appveyor.ymlH A D15-Jun-2021531

.clang-formatH A D15-Jun-2021222

.gitignoreH A D15-Jun-202146

.gitlab-ci.ymlH A D15-Jun-2021518

LICENSEH A D15-Jun-20211.1 KiB

README.mdH A D15-Jun-20211.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