2014-05-20 00:39:08 +08:00
|
|
|
//===--- IncludeOrderCheck.h - clang-tidy -----------------------*- C++ -*-===//
|
2013-07-29 16:19:24 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-05-20 00:39:08 +08:00
|
|
|
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_INCLUDE_ORDER_CHECK_H
|
|
|
|
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_INCLUDE_ORDER_CHECK_H
|
2013-07-29 16:19:24 +08:00
|
|
|
|
|
|
|
#include "../ClangTidy.h"
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
namespace tidy {
|
2015-03-02 20:39:18 +08:00
|
|
|
namespace llvm {
|
2013-07-29 16:19:24 +08:00
|
|
|
|
2015-08-28 02:01:58 +08:00
|
|
|
/// Checks the correct order of `#includes`.
|
2013-07-29 16:19:24 +08:00
|
|
|
///
|
2015-08-28 02:01:58 +08:00
|
|
|
/// See http://llvm.org/docs/CodingStandards.html#include-style
|
2013-07-29 16:19:24 +08:00
|
|
|
class IncludeOrderCheck : public ClangTidyCheck {
|
|
|
|
public:
|
2014-09-12 16:53:36 +08:00
|
|
|
IncludeOrderCheck(StringRef Name, ClangTidyContext *Context)
|
|
|
|
: ClangTidyCheck(Name, Context) {}
|
2014-03-02 18:20:11 +08:00
|
|
|
void registerPPCallbacks(CompilerInstance &Compiler) override;
|
2013-07-29 16:19:24 +08:00
|
|
|
};
|
|
|
|
|
2015-03-02 20:39:18 +08:00
|
|
|
} // namespace llvm
|
2013-07-29 16:19:24 +08:00
|
|
|
} // namespace tidy
|
|
|
|
} // namespace clang
|
|
|
|
|
2014-05-20 00:39:08 +08:00
|
|
|
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_INCLUDE_ORDER_CHECK_H
|