Home
last modified time | relevance | path

Searched refs:clang (Results 1 – 25 of 4628) sorted by relevance

12345678910>>...186

/external/clang/test/Parser/
Dpragma-loop.cpp8 #pragma clang loop vectorize_width(V) interleave_count(I) in test_nontype_template_param()
13 #pragma clang loop vectorize_width(V + 4) interleave_count(I + 4) in test_nontype_template_param()
21 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_vectorize()
26 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop vectorize_width(V … in test_nontype_template_vectorize()
34 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop interleave_count(… in test_nontype_template_interleave()
39 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop interleave_count(2… in test_nontype_template_interleave()
47 …/* expected-error {{invalid argument of type 'char'; expected an integer type}} */ #pragma clang l… in test_nontype_template_char()
55 …/* expected-error {{invalid argument of type 'bool'; expected an integer type}} */ #pragma clang l… in test_nontype_template_bool()
63 …/* expected-error {{use of undeclared identifier 'Vec'}} */ #pragma clang loop vectorize_width(Vec… in test_nontype_template_badarg()
64 …/* expected-error {{use of undeclared identifier 'Int'}} */ #pragma clang loop vectorize_width(V) … in test_nontype_template_badarg()
[all …]
Dpragma-loop-safety.cpp9 #pragma clang loop vectorize(assume_safety) in test()
10 #pragma clang loop interleave(assume_safety) in test()
15 /* expected-error {{expected ')'}} */ #pragma clang loop vectorize(assume_safety in test()
16 /* expected-error {{expected ')'}} */ #pragma clang loop interleave(assume_safety in test()
18 /* expected-error {{invalid argument; expected 'enable', 'full' or 'disable'}} */ #pragma clang loo… in test()
19 /* expected-error {{invalid argument; expected 'enable' or 'disable'}} */ #pragma clang loop distri… in test()
21 …id argument; expected 'enable', 'assume_safety' or 'disable'}} */ #pragma clang loop vectorize(bad… in test()
22 …id argument; expected 'enable', 'assume_safety' or 'disable'}} */ #pragma clang loop interleave(ba… in test()
23 /* expected-error {{invalid argument; expected 'enable', 'full' or 'disable'}} */ #pragma clang loo… in test()
28 …irectives 'vectorize(assume_safety)' and 'vectorize(enable)'}} */ #pragma clang loop vectorize(ena… in test()
[all …]
/external/clang/
DAndroid.bp2 name: "clang-defaults",
7 header_libs: ["clang-headers"],
18 "external/clang/include",
19 "external/clang/lib/CodeGen",
44 "clang-gen-options",
45 "clang-gen-attributes",
46 "clang-gen-checkers",
47 "clang-gen-comment-commands",
48 "clang-gen-comment-html-named-character-references",
49 "clang-gen-html-tags",
[all …]
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.h29 namespace clang {
46 class MapVisitor : public clang::RecursiveASTVisitor<MapVisitor> {
48 explicit MapVisitor(std::set<clang::Decl *> &m);
49 bool VisitCallExpr(clang::CallExpr *Call);
50 void set_ptreg(std::tuple<clang::Decl *, int> &pt) { ptregs_.insert(pt); } in set_ptreg()
52 std::set<clang::Decl *> &m_;
53 std::set<std::tuple<clang::Decl *, int>> ptregs_;
60 class BTypeVisitor : public clang::RecursiveASTVisitor<BTypeVisitor> {
62 explicit BTypeVisitor(clang::ASTContext &C, BFrontendAction &fe);
63 bool TraverseCallExpr(clang::CallExpr *Call);
[all …]
Dtp_frontend_action.h27 namespace clang {
43 public clang::RecursiveASTVisitor<TracepointTypeVisitor> {
45 explicit TracepointTypeVisitor(clang::ASTContext &C,
46 clang::Rewriter &rewriter);
47 bool VisitFunctionDecl(clang::FunctionDecl *D);
50 std::string GenerateTracepointStruct(clang::SourceLocation loc,
53 clang::ASTContext &C;
54 clang::DiagnosticsEngine &diag_;
55 clang::Rewriter &rewriter_;
59 class TracepointTypeConsumer : public clang::ASTConsumer {
[all …]
/external/google-fruit/extras/scripts/
Dpostsubmit-helper.sh40 clang-3.5)
41 export CC=clang-3.5
42 export CXX=clang++-3.5
45 clang-3.6)
46 export CC=clang-3.6
47 export CXX=clang++-3.6
50 clang-3.7)
51 export CC=clang-3.7
52 export CXX=clang++-3.7
55 clang-3.8)
[all …]
/external/clang/tools/clang-format/
DCMakeLists.txt3 add_clang_tool(clang-format
14 target_link_libraries(clang-format
22 install(PROGRAMS clang-format-bbedit.applescript
23 DESTINATION share/clang
24 COMPONENT clang-format)
25 install(PROGRAMS clang-format-diff.py
26 DESTINATION share/clang
27 COMPONENT clang-format)
28 install(PROGRAMS clang-format-sublime.py
29 DESTINATION share/clang
[all …]
/external/clang/include/clang/AST/
DTypeOrdering.h26 namespace clang {
40 template<> struct DenseMapInfo<clang::QualType> {
41 static inline clang::QualType getEmptyKey() { return clang::QualType(); }
43 static inline clang::QualType getTombstoneKey() {
44 using clang::QualType;
45 return QualType::getFromOpaquePtr(reinterpret_cast<clang::Type *>(-1));
48 static unsigned getHashValue(clang::QualType Val) {
53 static bool isEqual(clang::QualType LHS, clang::QualType RHS) {
58 template<> struct DenseMapInfo<clang::CanQualType> {
59 static inline clang::CanQualType getEmptyKey() {
[all …]
DBaseSubobject.h23 namespace clang {
54 template<> struct DenseMapInfo<clang::BaseSubobject> {
55 static clang::BaseSubobject getEmptyKey() {
56 return clang::BaseSubobject(
57 DenseMapInfo<const clang::CXXRecordDecl *>::getEmptyKey(),
58 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getEmptyKey()));
61 static clang::BaseSubobject getTombstoneKey() {
62 return clang::BaseSubobject(
63 DenseMapInfo<const clang::CXXRecordDecl *>::getTombstoneKey(),
64 clang::CharUnits::fromQuantity(DenseMapInfo<int64_t>::getTombstoneKey()));
[all …]
DStmtGraphTraits.h27 template <> struct GraphTraits<clang::Stmt*> {
28 typedef clang::Stmt NodeType;
29 typedef clang::Stmt::child_iterator ChildIteratorType;
30 typedef llvm::df_iterator<clang::Stmt*> nodes_iterator;
32 static NodeType* getEntryNode(clang::Stmt* S) { return S; }
44 static nodes_iterator nodes_begin(clang::Stmt* S) {
48 static nodes_iterator nodes_end(clang::Stmt* S) {
54 template <> struct GraphTraits<const clang::Stmt*> {
55 typedef const clang::Stmt NodeType;
56 typedef clang::Stmt::const_child_iterator ChildIteratorType;
[all …]
DCharUnits.h21 namespace clang {
208 inline clang::CharUnits operator* (clang::CharUnits::QuantityType Scale,
209 const clang::CharUnits &CU) {
215 template<> struct DenseMapInfo<clang::CharUnits> {
216 static clang::CharUnits getEmptyKey() {
217 clang::CharUnits::QuantityType Quantity =
218 DenseMapInfo<clang::CharUnits::QuantityType>::getEmptyKey();
220 return clang::CharUnits::fromQuantity(Quantity);
223 static clang::CharUnits getTombstoneKey() {
224 clang::CharUnits::QuantityType Quantity =
[all …]
/external/clang/test/Preprocessor/
Dpragma_diagnostic_sections.cpp7 #pragma clang diagnostic push
8 #pragma clang diagnostic ignored "-Wtautological-compare"
10 #pragma clang diagnostic pop
17 #pragma clang diagnostic push
18 #pragma clang diagnostic ignored "-Wtautological-compare"
23 #pragma clang diagnostic pop
34 #pragma clang diagnostic push
35 #pragma clang diagnostic ignored "-Wunused-macros"
37 #pragma clang diagnostic pop
41 #pragma clang diagnostic push
[all …]
Dpushable-diagnostics.c3 #pragma clang diagnostic pop // expected-warning{{pragma diagnostic pop could not pop, no matching …
5 #pragma clang diagnostic puhs // expected-warning {{pragma diagnostic expected 'error', 'warning', …
9 #pragma clang diagnostic push
10 #pragma clang diagnostic ignored "-Wmultichar"
13 #pragma clang diagnostic pop
17 #pragma clang diagnostic pop // expected-warning{{pragma diagnostic pop could not pop, no matching …
22 #pragma clang diagnostic push // now push
24 #pragma clang diagnostic warning "-Weverything"
27 #pragma clang diagnostic push // push again
28 #pragma clang diagnostic ignored "-Weverything" // Set to ignore in this level.
[all …]
/external/clang/include/clang/ASTMatchers/
DASTMatchersMacros.h59 return ::clang::ast_matchers::internal::MemoizedMatcher< \
98 : public ::clang::ast_matchers::internal::MatcherInterface<Type> { \
102 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \
103 ::clang::ast_matchers::internal::BoundNodesTreeBuilder \
107 inline ::clang::ast_matchers::internal::Matcher<Type> DefineMatcher() { \
108 return ::clang::ast_matchers::internal::makeMatcher( \
113 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \
114 ::clang::ast_matchers::internal::BoundNodesTreeBuilder *Builder) const
136 : public ::clang::ast_matchers::internal::MatcherInterface<Type> { \
142 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \
[all …]
/external/clang/include/clang/Analysis/
DCallGraph.h26 namespace clang {
173 template <> struct GraphTraits<clang::CallGraphNode*> {
174 typedef clang::CallGraphNode NodeType;
175 typedef clang::CallGraphNode::CallRecord CallRecordTy;
177 clang::CallGraphNode*> CGNDerefFun;
178 static NodeType *getEntryNode(clang::CallGraphNode *CGN) { return CGN; }
186 static clang::CallGraphNode *CGNDeref(CallRecordTy P) {
191 template <> struct GraphTraits<const clang::CallGraphNode*> {
192 typedef const clang::CallGraphNode NodeType;
194 static NodeType *getEntryNode(const clang::CallGraphNode *CGN) { return CGN; }
[all …]
/external/clang/test/SemaCXX/
Dswitch-implicit-fallthrough.cpp55 [[clang::fallthrough]]; in fallthrough()
58 [[clang::fallthrough]]; in fallthrough()
63 [[clang::fallthrough]]; in fallthrough()
70 [[clang::fallthrough]]; in fallthrough()
183 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position()
186 [[clang::fallthrough]]; // expected-warning{{fallthrough annotation in unreachable code}} in fallthrough_position()
197 [[clang::fallthrough]]; // no warning here in fallthrough_position()
200 [[clang::fallthrough]]; // no warning here in fallthrough_position()
218 [[clang::fallthrough]]; // no warning here, this shouldn't be treated as unreachable code in fallthrough_covered_enums()
237 [[clang::fallthrough]]; // no diagnostics in fallthrough_in_local_class()
[all …]
Dcaptured-statements.cpp8 #pragma clang __debug captured in test_nest_lambda()
17 #pragma clang __debug captured in test_nest_lambda()
34 #pragma clang __debug captured in test()
36 #pragma clang __debug captured in test()
45 #pragma clang __debug captured in test()
47 #pragma clang __debug captured in test()
49 #pragma clang __debug captured in test()
57 #pragma clang _debug captured in template_capture_var()
68 #pragma clang __debug captured in set()
85 #pragma clang _debug captured in template_capture_var()
[all …]
/external/clang/test/CodeGenCXX/
Dpragma-loop.cpp8 #pragma clang loop vectorize(enable) in while_test()
9 #pragma clang loop interleave_count(4) in while_test()
10 #pragma clang loop vectorize_width(4) in while_test()
11 #pragma clang loop unroll(full) in while_test()
12 #pragma clang loop distribute(enable) in while_test()
24 #pragma clang loop vectorize_width(8) interleave_count(4) unroll(disable) distribute(disable) in do_test()
36 #pragma clang loop interleave(enable) in for_test()
37 #pragma clang loop interleave_count(static_cast<int>(Tuner::Interleave)) in for_test()
38 #pragma clang loop unroll_count(static_cast<int>(Tuner::Unroll)) in for_test()
50 #pragma clang loop vectorize_width(2) interleave_count(2) in for_range_test()
[all …]
/external/adhd/
D.clang-format3 # clang-format configuration file. Intended for clang-format >= 4.
7 # Documentation/process/clang-format.rst
8 # https://clang.llvm.org/docs/ClangFormat.html
9 # https://clang.llvm.org/docs/ClangFormatStyleOptions.html
16 #AlignEscapedNewlines: Left # Unknown to clang-format-4.0
40 #AfterExternBlock: false # Unknown to clang-format-5.0
44 #SplitEmptyFunction: true # Unknown to clang-format-4.0
45 #SplitEmptyRecord: true # Unknown to clang-format-4.0
46 #SplitEmptyNamespace: true # Unknown to clang-format-4.0
49 #BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0
[all …]
/external/llvm/test/CodeGen/PowerPC/
DBreakableToken-reduced.ll31 %"class.clang::format::BreakableStringLiteral" = type { %"class.clang::format::BreakableSingleLineT…
32 %"class.clang::format::BreakableSingleLineToken" = type { %"class.clang::format::BreakableToken", i…
33 %"class.clang::format::BreakableToken" = type { i32 (...)**, %"struct.clang::format::FormatToken"*,…
35clang::format::FormatToken" = type <{ %"class.clang::Token", i32, i8, [3 x i8], %"class.clang::Sou…
36 %"class.clang::Token" = type <{ i32, i32, i8*, i16, i16, [4 x i8] }>
37 %"class.clang::SourceRange" = type { %"class.clang::SourceLocation", %"class.clang::SourceLocation"…
38 %"class.clang::SourceLocation" = type { i32 }
42 %"struct.std::_Head_base.2" = type { %"class.clang::format::TokenRole"* }
43 %"class.clang::format::TokenRole" = type { i32 (...)**, %"struct.clang::format::FormatStyle"* }
59 %"struct.clang::format::FormatStyle" = type { i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, i8, i8, i32…
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
DBreakableToken-reduced.ll31 %"class.clang::format::BreakableStringLiteral" = type { %"class.clang::format::BreakableSingleLineT…
32 %"class.clang::format::BreakableSingleLineToken" = type { %"class.clang::format::BreakableToken", i…
33 %"class.clang::format::BreakableToken" = type { i32 (...)**, %"struct.clang::format::FormatToken"*,…
35clang::format::FormatToken" = type <{ %"class.clang::Token", i32, i8, [3 x i8], %"class.clang::Sou…
36 %"class.clang::Token" = type <{ i32, i32, i8*, i16, i16, [4 x i8] }>
37 %"class.clang::SourceRange" = type { %"class.clang::SourceLocation", %"class.clang::SourceLocation"…
38 %"class.clang::SourceLocation" = type { i32 }
42 %"struct.std::_Head_base.2" = type { %"class.clang::format::TokenRole"* }
43 %"class.clang::format::TokenRole" = type { i32 (...)**, %"struct.clang::format::FormatStyle"* }
59 %"struct.clang::format::FormatStyle" = type { i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, i8, i8, i32…
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
DMPIChecker.h27 namespace clang {
60 void checkDoubleNonblocking(const clang::ento::CallEvent &PreCallEvent,
61 clang::ento::CheckerContext &Ctx) const;
69 void checkUnmatchedWaits(const clang::ento::CallEvent &PreCallEvent,
70 clang::ento::CheckerContext &Ctx) const;
75 void checkMissingWaits(clang::ento::SymbolReaper &SymReaper,
76 clang::ento::CheckerContext &Ctx) const;
88 llvm::SmallVector<const clang::ento::MemRegion *, 2> &ReqRegions,
89 const clang::ento::MemRegion *const MR, const clang::ento::CallEvent &CE,
90 clang::ento::CheckerContext &Ctx) const;
[all …]
/external/clang/test/Driver/
Dr600-mcpu.cl3 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=r600 %s -o - 2>&1 | FileCheck --check-pr…
4 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv630 %s -o - 2>&1 | FileCheck --check-p…
5 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv635 %s -o - 2>&1 | FileCheck --check-p…
6 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv610 %s -o - 2>&1 | FileCheck --check-p…
7 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv620 %s -o - 2>&1 | FileCheck --check-p…
8 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rs780 %s -o - 2>&1 | FileCheck --check-p…
9 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rs880 %s -o - 2>&1 | FileCheck --check-p…
10 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv670 %s -o - 2>&1 | FileCheck --check-p…
11 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv710 %s -o - 2>&1 | FileCheck --check-p…
12 // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv730 %s -o - 2>&1 | FileCheck --check-p…
[all …]
/external/clang/docs/
DClangFormat.rst13 :program:`clang-format` is located in `clang/tools/clang-format` and can be used
18 $ clang-format -help
27 USAGE: clang-format [options] [<file> ...]
33 -assume-filename=<string> - When reading from stdin, clang-format assumes this
37 clang-format from an editor integration
41 fallback in case clang-format is invoked with
42 -style=file, but can not find the .clang-format
50 -length, clang-format will format up to the end
68 .clang-format file located in one of the parent
84 by putting your style configuration in the ``.clang-format`` or ``_clang-format``
[all …]
/external/clang/tools/clang-check/
DClangCheck.cpp35 using namespace clang::driver;
36 using namespace clang::tooling;
87 class FixItOptions : public clang::FixItOptions {
111 class FixItRewriter : public clang::FixItRewriter {
113 FixItRewriter(clang::DiagnosticsEngine& Diags, in FixItRewriter()
114 clang::SourceManager& SourceMgr, in FixItRewriter()
115 const clang::LangOptions& LangOpts, in FixItRewriter()
116 clang::FixItOptions* FixItOpts) in FixItRewriter()
117 : clang::FixItRewriter(Diags, SourceMgr, LangOpts, FixItOpts) { in FixItRewriter()
125 class FixItAction : public clang::FixItAction {
[all …]

12345678910>>...186