clang-tools
3.9.0
Main Page
Namespaces
Classes
Files
File List
File Members
llvm.src
tools
clang
tools
extra
clang-tidy
utils
LexerUtils.h
Go to the documentation of this file.
1
//===--- LexerUtils.h - clang-tidy-------------------------------*- C++ -*-===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
10
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_UTILS_LEXER_UTILS_H
11
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_UTILS_LEXER_UTILS_H
12
13
#include "clang/AST/ASTContext.h"
14
#include "clang/Lex/Lexer.h"
15
16
namespace
clang {
17
namespace
tidy {
18
namespace
utils {
19
namespace
lexer {
20
21
/// Returns previous non-comment token skipping over any comment text or
22
/// ``tok::unknown`` if not found.
23
Token
getPreviousNonCommentToken
(
const
ASTContext &
Context
,
24
SourceLocation
Location
);
25
26
}
// namespace lexer
27
}
// namespace utils
28
}
// namespace tidy
29
}
// namespace clang
30
31
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_UTILS_LEXER_UTILS_H
Context
ClangTidyContext & Context
Definition:
ClangTidy.cpp:93
clang::tidy::utils::lexer::getPreviousNonCommentToken
Token getPreviousNonCommentToken(const ASTContext &Context, SourceLocation Location)
Returns previous non-comment token skipping over any comment text or tok::unknown if not found...
Definition:
LexerUtils.cpp:17
Location
Definition:
Modularize.cpp:386
Generated on Wed Aug 31 2016 16:57:10 for clang-tools by
1.8.6