From dd0a20c6d521a417c6d387100f389e70a7165d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20M=C3=BCller?= Date: Tue, 10 Oct 2017 17:20:02 +0200 Subject: [PATCH] Support C-style doc comments with ! --- src/libclang/preprocessor.cpp | 2 +- test/cpp_preprocessor.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libclang/preprocessor.cpp b/src/libclang/preprocessor.cpp index 15494f0..0a36e2a 100644 --- a/src/libclang/preprocessor.cpp +++ b/src/libclang/preprocessor.cpp @@ -438,7 +438,7 @@ namespace if (starts_with(p, "*/")) // empty comment p.skip(2u); - else if (in_main_file && starts_with(p, "*")) + else if (in_main_file && (starts_with(p, "*") || starts_with(p, "!"))) { // doc comment p.skip(); diff --git a/test/cpp_preprocessor.cpp b/test/cpp_preprocessor.cpp index 316906c..3bd499b 100644 --- a/test/cpp_preprocessor.cpp +++ b/test/cpp_preprocessor.cpp @@ -216,8 +216,8 @@ class name \ /// h g(h) -/// i -/// i +/*! i + i */ using i = int; /// j