aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm/tools/clang/lib/Format/Comments.h
blob: 59f0596361a5c0427ae0c9177ac8f8dfcb2a8597 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//===--- Comments.cpp - Comment manipulation  -----------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief Declares comment manipulation functionality.
///
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_LIB_FORMAT_COMMENTS_H
#define LLVM_CLANG_LIB_FORMAT_COMMENTS_H

#include "clang/Basic/LLVM.h"
#include "llvm/ADT/StringRef.h"

namespace clang {
namespace format {

/// \brief Returns the comment prefix of the line comment \p Comment.
///
/// The comment prefix consists of a leading known prefix, like "//" or "///",
/// together with the following whitespace.
StringRef getLineCommentIndentPrefix(StringRef Comment);

} // namespace format
} // namespace clang

#endif