blob: d91c5de2fba0da7e248f359709dc032ff018da14 [file] [log] [blame]
Jonathan Coe3032d3c2017-02-06 22:57:14 +00001//===--- NoAssemblerCheck.h - clang-tidy-------------------------*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Jonathan Coe3032d3c2017-02-06 22:57:14 +00006//
7//===----------------------------------------------------------------------===//
8
Aaron Ballmandbdbabf2017-03-19 17:23:23 +00009#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_HICPP_NO_ASSEMBLER_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_HICPP_NO_ASSEMBLER_H
Jonathan Coe3032d3c2017-02-06 22:57:14 +000011
12#include "../ClangTidy.h"
13
14namespace clang {
15namespace tidy {
Aaron Ballmandbdbabf2017-03-19 17:23:23 +000016namespace hicpp {
Jonathan Coe3032d3c2017-02-06 22:57:14 +000017
18/// Find assembler statements. No fix is offered.
19///
20/// For the user-facing documentation see:
Aaron Ballmandbdbabf2017-03-19 17:23:23 +000021/// http://clang.llvm.org/extra/clang-tidy/checks/hicpp-no-assembler.html
Jonathan Coe3032d3c2017-02-06 22:57:14 +000022class NoAssemblerCheck : public ClangTidyCheck {
23public:
24 NoAssemblerCheck(StringRef Name, ClangTidyContext *Context)
25 : ClangTidyCheck(Name, Context) {}
26 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
27 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
28};
29
Aaron Ballmandbdbabf2017-03-19 17:23:23 +000030} // namespace hicpp
Jonathan Coe3032d3c2017-02-06 22:57:14 +000031} // namespace tidy
32} // namespace clang
33
Aaron Ballmandbdbabf2017-03-19 17:23:23 +000034#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_HICPP_NO_ASSEMBLER_H