1 //===--- Comments.cpp - Comment manipulation -----------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Declares comment manipulation functionality.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_LIB_FORMAT_COMMENTS_H
16 #define LLVM_CLANG_LIB_FORMAT_COMMENTS_H
18 #include "clang/Basic/LLVM.h"
19 #include "llvm/ADT/StringRef.h"
24 /// \brief Returns the comment prefix of the line comment \p Comment.
26 /// The comment prefix consists of a leading known prefix, like "//" or "///",
27 /// together with the following whitespace.
28 StringRef getLineCommentIndentPrefix(StringRef Comment);