[llvm] [LLVM][AsmParser] Add support for C style comments (PR #111554)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 11:17:24 PDT 2024
================
@@ -262,6 +274,38 @@ void LLLexer::SkipLineComment() {
}
}
+/// SkipCComment - This skips C-style /**/ comments. The only difference from C
+/// is that we allow nesting.
----------------
jrtc27 wrote:
Is there a good reason to support this / are there other languages out there that support nesting C-style comments? I don't think it's a good idea to deviate from C here unless there's a very good reason to.
https://github.com/llvm/llvm-project/pull/111554
More information about the llvm-commits
mailing list