You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
eidheim 1b48e1f4bd Added support for Apple M1 5 years ago
cmake_modules Added support for Apple M1 5 years ago
docs Moved to GitLab 8 years ago
src Improved support for UTF-8 symbols 5 years ago
tests Renamed C++ header and source files to use proper C++ file extensions. 6 years ago
.appveyor.sh Updated CI 8 years ago
.appveyor.yml Updated CI 8 years ago
.clang-format Formatted code with custom clang-format 8 years ago
.gitignore Initial commit 11 years ago
.gitlab-ci.yml Updated CI 8 years ago
CMakeLists.txt Updated cmake minimum required to 3.1 5 years ago
LICENSE Update license year 6 years ago
README.md Formatted code with custom clang-format 8 years ago

README.md

libclangmm

an easy-to-use C++ wrapper for libclang

About

Provides C++ bindings and class structure to the libclang C library.

Developed for juCi++, a lightweight, platform-independent C++ IDE.

Dependencies

  • libclang

Installation

See installation guide

Tests

To run the unit tests:

mkdir build && cd build
cmake -DBUILD_TESTING=1 ..
make
make test

Coding style

Due to poor lambda support in clang-format, a custom clang-format is used with the following patch applied:

diff --git a/lib/Format/ContinuationIndenter.cpp b/lib/Format/ContinuationIndenter.cpp
index bb8efd61a3..e80a487055 100644
--- a/lib/Format/ContinuationIndenter.cpp
+++ b/lib/Format/ContinuationIndenter.cpp
@@ -276,6 +276,8 @@ LineState ContinuationIndenter::getInitialState(unsigned FirstIndent,
 }
 
 bool ContinuationIndenter::canBreak(const LineState &State) {
+  if(Style.ColumnLimit==0)
+    return true;
   const FormatToken &Current = *State.NextToken;
   const FormatToken &Previous = *Current.Previous;
   assert(&Previous == Current.Previous);
@@ -325,6 +327,8 @@ bool ContinuationIndenter::canBreak(const LineState &State) {
 }
 
 bool ContinuationIndenter::mustBreak(const LineState &State) {
+  if(Style.ColumnLimit==0)
+    return false;
   const FormatToken &Current = *State.NextToken;
   const FormatToken &Previous = *Current.Previous;
   if (Current.MustBreakBefore || Current.is(TT_InlineASMColon))