Home
last modified time | relevance | path

Searched full:macros (Results 1 – 25 of 2026) sorted by relevance

12345678910>>...82

/llvm-project/libc/include/llvm-libc-macros/
H A DCMakeLists.txt10 if(TARGET libc.include.llvm-libc-macros.${LIBC_TARGET_OS}.${name})
37 assert-macros.h
43 error-number-macros.h
49 generic-error-number-macros.h
61 fcntl-macros.h
67 complex-macros.h
73 features-macros.h
79 fenv-macros.h
85 file-seek-macros.h
91 stdint-macros
[all...]
/llvm-project/llvm/test/tools/llvm-cov/
H A Dbranch-export-lcov.test41 // RUN: llvm-profdata merge %S/Inputs/branch-macros.proftext -o %t.profdata
42 … export --format=lcov %S/Inputs/branch-macros.o32l -instr-profile %t.profdata | FileCheck %s -chec…
43 // RUN: llvm-cov export --format=lcov --skip-branches %S/Inputs/branch-macros.o32l -instr-profile %…
45 // MACROS-COUNT-4: BRDA:17
46 // MACROS-NOT: BRDA:17
48 // MACROS-COUNT-4: BRDA:19
49 // MACROS-NOT: BRDA:19
51 // MACROS-COUNT-4: BRDA:21
52 // MACROS-NOT: BRDA:21
54 // MACROS-COUNT-4: BRDA:23
[all …]
H A Dbranch-export-json.test24 // RUN: llvm-profdata merge %S/Inputs/branch-macros.proftext -o %t.profdata
25 … export --format=text %S/Inputs/branch-macros.o32l -instr-profile %t.profdata | FileCheck %s -chec…
27 // MACROS: "branches":
28 // MACROS: 27,10,27,11,0,3,0,0,4
29 // MACROS: 27,15,27,16,0,0,0,0,4
30 // MACROS: 27,20,27,21,0,0,0,0,4
31 // MACROS: 27,25,27,26,0,0,0,0,4
32 // MACROS: 27,30,27,31,0,0,0,0,4
34 // MACROS: 15,5,23,1,2,1,0,4
35 // MACROS: 6,15,6,23,0,1,2,0,4
[all …]
/llvm-project/libc/include/llvm-libc-macros/linux/
H A DCMakeLists.txt4 error-number-macros.h
10 fcntl-macros.h
16 sched-macros.h
22 sys-epoll-macros.h
28 sys-ioctl-macros.h
34 sys-random-macros.h
40 sys-socket-macros.h
46 sys-wait-macros.h
52 time-macros.h
58 sys-resource-macros.h
[all …]
/llvm-project/clang/unittests/Format/
H A DMacroExpanderTest.cpp1 #include "../../lib/Format/Macros.h"
22 std::string expand(MacroExpander &Macros, StringRef Name) { in expand() argument
23 EXPECT_TRUE(Macros.defined(Name)) in expand()
25 return text(Macros.expand(Lex.id(Name), {})); in expand()
28 std::string expand(MacroExpander &Macros, StringRef Name, in expand() argument
30 EXPECT_TRUE(Macros.defined(Name)) in expand()
32 return text(Macros.expand(Lex.id(Name), lexArgs(Args))); in expand()
84 auto Macros = in TEST_F() local
87 EXPECT_FALSE(Macros->defined(Name)) << "for Name " << Name; in TEST_F()
91 auto Macros = create({ in TEST_F() local
[all …]
H A DFormatTestMacroExpansion.cpp22 Style.Macros.push_back("CLASS=class C {"); in TEST_F()
23 Style.Macros.push_back("SEMI=;"); in TEST_F()
24 Style.Macros.push_back("STMT=f();"); in TEST_F()
25 Style.Macros.push_back("ID(x)=x"); in TEST_F()
26 Style.Macros.push_back("ID3(x, y, z)=x y z"); in TEST_F()
27 Style.Macros.push_back("CALL(x)=f([] { x })"); in TEST_F()
28 Style.Macros.push_back("ASSIGN_OR_RETURN(a, b)=a = (b)"); in TEST_F()
29 Style.Macros.push_back("ASSIGN_OR_RETURN(a, b, c)=a = (b); if (x) return c"); in TEST_F()
30 Style.Macros.push_back("MOCK_METHOD(r, n, a, s)=r n a s"); in TEST_F()
100 // FIXME: Arbitrary formatting of macros where the end of the logical in TEST_F()
[all …]
H A DMacroCallReconstructorTest.cpp1 #include "../../lib/Format/Macros.h"
28 Expansion(TestLexer &Lex, MacroExpander &Macros) : Lex(Lex), Macros(Macros) {} in Expansion() argument
68 auto Expanded = Macros.expand(ID, Args); in expandInternal()
88 MacroExpander &Macros;
211 auto Macros = createExpander({"X=x"}); in TEST_F() local
212 Expansion Exp(Lex, *Macros); in TEST_F()
223 auto Macros = createExpander({"X"}); in TEST_F() local
224 Expansion Exp(Lex, *Macros); in TEST_F()
86 MacroExpander &Macros; global() member in clang::format::__anon59adf30c0111::Expansion
241 auto Macros = createExpander({"C(a, b)=a b", "B(a)={a}"}); TEST_F() local
272 auto Macros = createExpander({"SEMI=;"}); TEST_F() local
298 auto Macros = createExpander({"ID(x)=x"}); TEST_F() local
352 auto Macros = createExpander({"ID(x)=x", "CALL(x)=f([] { x })"}); TEST_F() local
431 auto Macros = createExpander({"CALL(a, b)=f([] { a; b; })"}); TEST_F() local
452 auto Macros = createExpander({"CALL(a, b)=b + a"}); TEST_F() local
466 auto Macros = createExpander({"ID(a, b)=a b"}); TEST_F() local
488 auto Macros = createExpander({"ID(x)=x"}); TEST_F() local
544 auto Macros = createExpander({"ID(a)=a"}); TEST_F() local
584 auto Macros = createExpander({"CALL(a, b)=f([]() a b)"}); TEST_F() local
609 auto Macros = createExpander({"CALL(a, b)=f([]() a b"}); TEST_F() local
651 auto Macros = createExpander({"M(a, b, c)=(a) (b) c"}); TEST_F() local
677 auto Macros = createExpander({"ID(a)=a"}); TEST_F() local
[all...]
/llvm-project/libc/src/math/generic/
H A DCMakeLists.txt36 libc.src.__support.macros.properties.types
49 libc.src.__support.macros.properties.types
104 libc.src.__support.macros.properties.types
116 libc.src.__support.macros.properties.types
170 libc.src.__support.macros.properties.cpu_features
171 libc.src.__support.macros.properties.types
185 libc.src.__support.macros.properties.types
210 libc.src.__support.macros.properties.types
235 libc.src.__support.macros.properties.types
247 libc.src.__support.macros
[all...]
/llvm-project/libc/include/
H A DCMakeLists.txt11 add_subdirectory(llvm-libc-macros)
57 .llvm-libc-macros.fcntl_macros
72 .llvm-libc-macros.dlfcn_macros
82 .llvm-libc-macros.features_macros
91 .llvm-libc-macros.fenv_macros
103 .llvm-libc-macros.inttypes_macros
111 .llvm-libc-macros.float_macros
119 .llvm-libc-macros.stdint_macros
127 .llvm-libc-macros.limits_macros
136 .llvm-libc-macros
[all...]
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/modernize/
H A Dmacro-to-enum.rst6 Replaces groups of adjacent macros with an unscoped anonymous enum.
11 Prefer enumerations over macros
12 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#enum1-prefer-enumerations-over-macros
15 Potential macros for replacement must meet the following constraints:
17 - Macros must expand only to integral literal tokens or expressions
27 - Macros must be defined on sequential source file lines, or with
29 - Macros must all be defined in the same source file.
30 - Macros must not be defined within a conditional compilation block.
32 - Macros must not be defined adjacent to other preprocessor directives.
33 - Macros must not be used in any conditional preprocessing directive.
[all …]
/llvm-project/libc/hdr/
H A DCMakeLists.txt31 libc.include.llvm-libc-macros.math_macros
40 libc.include.llvm-libc-macros.math_function_macros
50 libc.include.llvm-libc-macros.error_number_macros
51 libc.include.llvm-libc-macros.generic_error_number_macros
62 libc.include.llvm-libc-macros.fcntl_macros
71 libc.include.llvm-libc-macros.fenv_macros
80 libc.include.llvm-libc-macros.signal_macros
94 libc.include.llvm-libc-macros.stdlib_macros
107 libc.include.llvm-libc-macros.stdio_macros
108 libc.include.llvm-libc-macros
[all...]
/llvm-project/libc/src/__support/
H A DCMakeLists.txt2 add_subdirectory(macros)
88 macros/properties/architectures.h
89 macros/attributes.h
90 macros/properties/cpu_features.h
98 libc.src.__support.macros.attributes
110 libc.src.__support.macros.attributes
111 libc.src.__support.macros.config
119 libc.src.__support.macros.attributes
158 libc.src.__support.macros.attributes
226 libc.src.__support.macros
[all...]
/llvm-project/libc/utils/docgen/
H A Ddocgen.py34 * an optional macros object
37 Formatting of ``macros`` and ``functions`` objects
40 If a macros or functions object is present, then it may contain nested
62 # Validate macros
63 if "macros" in api:
66 f"warning: Macro definitions are listed for {header.name}, but no macro file can be found in the directory tree rooted at {header.macros_dir}. All macros will be listed as not implemented.",
70 macros = api["macros"]
72 for name, obj in macros.items():
147 def print_macros_rst(header: Header, macros
[all...]
H A Dheader.py16 * where is its macros file
21 ``$LLVM_PROJECT_ROOT/libc/include/llvm-libc-macros``. Docgen expects that
23 ``#define MACRO_NAME`` in some ``*-macros.h`` file in the directory tree.
47 self.macros_dir = Path(self.libc_root, "include", "llvm-libc-macros")
67 ``$LLVM_PROJECT_ROOT/libc/include/llvm-libc-macros/fenv-macros.h``,
70 ``$LLVM_PROJECT_ROOT/libc/include/llvm-libc-macros/linux/signal-macros.h``.
82 This function uses a glob on, e.g., ``"**/fcntl.macros.h"`` because the
84 libc/include/llvm-libc-macros/fcnt
[all...]
/llvm-project/clang/test/CodeCompletion/
H A Dmacros.c11 …// RUN: %clang_cc1 -include %S/Inputs/macros.h -fsyntax-only -code-completion-macros -code-complet… in test()
13 …// RUN: %clang_cc1 -include %S/Inputs/macros.h -fsyntax-only -code-completion-macros -code-complet… in test()
16 …// RUN: %clang_cc1 -include %S/Inputs/macros.h -fsyntax-only -code-completion-macros -code-complet… in test()
20 // Run the same tests, this time with macros loaded from the PCH file. in test()
21 // RUN: %clang_cc1 -emit-pch -o %t %S/Inputs/macros.h in test()
22 …// RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:%(… in test()
23 …// RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:%(… in test()
24 …// RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:%(… in test()
/llvm-project/libc/src/__support/FPUtil/
H A DCMakeLists.txt9 libc.src.__support.macros.attributes
19 libc.src.__support.macros.attributes
20 libc.src.__support.macros.properties.architectures
21 libc.src.__support.macros.sanitizer
34 libc.src.__support.macros.attributes
35 libc.src.__support.macros.properties.types
49 libc.src.__support.macros.attributes
100 libc.src.__support.macros.optimization
101 libc.src.__support.macros.properties.cpu_features
102 libc.src.__support.macros
[all...]
/llvm-project/libc/test/include/
H A DCMakeLists.txt11 libc.include.llvm-libc-macros.assert_macros
21 libc.include.llvm-libc-macros.complex_macros
31 libc.include.llvm-libc-macros.sys_queue_macros
48 libc.include.llvm-libc-macros.stdbit_macros
52 # simply testing the macros provided by stdbit.h, not the implementation
53 # of the underlying functions which the type generic macros may dispatch
70 libc.include.llvm-libc-macros.stdbit_macros
75 # simply testing the macros provided by stdbit.h, not the implementation
76 # of the underlying functions which the type generic macros may dispatch
87 libc.include.llvm-libc-macros
[all...]
/llvm-project/libc/src/__support/fixed_point/
H A DCMakeLists.txt6 libc.include.llvm-libc-macros.stdfix_macros
7 libc.src.__support.macros.attributes
17 libc.include.llvm-libc-macros.stdfix_macros
18 libc.src.__support.macros.attributes
19 libc.src.__support.macros.optimization
31 libc.include.llvm-libc-macros.stdfix_macros
32 libc.src.__support.macros.attributes
33 libc.src.__support.macros.optimization
/llvm-project/clang/unittests/Basic/
H A DSourceManagerTest.cpp605 std::vector<MacroAction> &Macros; in TEST_F()
608 explicit MacroTracker(std::vector<MacroAction> &Macros) : Macros(Macros) { } in TEST_F() local
612 Macros.push_back(MacroAction(MD->getLocation(), in TEST_F()
619 Macros.push_back( in TEST_F()
627 Macros.push_back(MacroAction(MacroNameTok.getLocation(), in TEST_F()
668 std::vector<MacroAction> Macros;
669 PP.addPPCallbacks(std::make_unique<MacroTracker>(Macros)); in TEST_F()
679 ASSERT_EQ(15U, Macros in TEST_F()
545 std::vector<MacroAction> &Macros; global() member in __anonf4d752260111::__anonf4d752260311::MacroTracker
548 MacroTracker(std::vector<MacroAction> & Macros) MacroTracker() argument
[all...]
/llvm-project/libc/spec/
H A Dgnu_ext.td
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dfunction-cognitive-complexity-flags.cpp9 // RUN: %check_clang_tidy -check-suffix=IGNORE-MACROS %s readability-function-cognitive-complexity …
14 // RUN: %check_clang_tidy -check-suffix=GLOBAL-IGNORE-MACROS %s readability-function-cognitive-comp…
22 …// CHECK-NOTES-IGNORE-MACROS: :[[@LINE-2]]:6: warning: function 'func_of_complexity_4' has cogniti… in func_of_complexity_4()
23 …// CHECK-NOTES-GLOBAL-IGNORE-MACROS: :[[@LINE-3]]:6: warning: function 'func_of_complexity_4' has … in func_of_complexity_4()
45 …// CHECK-NOTES-IGNORE-MACROS: :[[@LINE-3]]:6: warning: function 'function_with_macro' has cognitiv… in function_with_macro()
46 …// CHECK-NOTES-GLOBAL-IGNORE-MACROS: :[[@LINE-4]]:6: warning: function 'function_with_macro' has c… in function_with_macro()
64 …// CHECK-NOTES-IGNORE-MACROS: :[[@LINE-2]]:6: warning: function 'func_macro_1' has cognitive compl… in func_macro_1()
65 …// CHECK-NOTES-GLOBAL-IGNORE-MACROS: :[[@LINE-3]]:6: warning: function 'func_macro_1' has cognitiv… in func_macro_1()
74 …// CHECK-NOTES-IGNORE-MACROS: :[[@LINE-2]]:6: warning: function 'func_macro_2' has cognitive compl… in func_macro_2()
75 …// CHECK-NOTES-GLOBAL-IGNORE-MACROS: :[[@LINE-3]]:6: warning: function 'func_macro_2' has cognitiv… in func_macro_2()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Davoid-do-while.cpp2 // RUN: %check_clang_tidy -check-suffixes=IGNORE-MACROS %s cppcoreguidelines-avoid-do-while %t -- -…
23 …// CHECK-MESSAGES-IGNORE-MACROS: :[[@LINE+2]]:5: warning: avoid do-while loops [cppcoreguidelines-… in foo()
29 // CHECK-MESSAGES-IGNORE-MACROS: :[[@LINE+2]]:5: warning: avoid do-while loops in foo()
35 // CHECK-MESSAGES-IGNORE-MACROS: :[[@LINE+2]]:5: warning: avoid do-while loops in foo()
41 // CHECK-MESSAGES-IGNORE-MACROS: :[[@LINE+2]]:5: warning: avoid do-while loops in foo()
47 // CHECK-MESSAGES-IGNORE-MACROS: :[[@LINE+2]]:5: warning: avoid do-while loops in foo()
53 // CHECK-MESSAGES-IGNORE-MACROS: :[[@LINE+3]]:5: warning: avoid do-while loops in foo()
60 // CHECK-MESSAGES-IGNORE-MACROS: :[[@LINE+2]]:5: warning: avoid do-while loops in foo()
66 // CHECK-MESSAGES-IGNORE-MACROS: :[[@LINE+3]]:5: warning: avoid do-while loops in foo()
73 // CHECK-MESSAGES-IGNORE-MACROS: :[[@LINE+3]]:5: warning: avoid do-while loops in foo()
/llvm-project/libc/src/__support/macros/properties/
H A Dtypes.h14 #include "include/llvm-libc-macros/float16-macros.h" // LIBC_TYPES_HAS_FLOAT16
16 #include "src/__support/macros/properties/architectures.h"
17 #include "src/__support/macros/properties/compiler.h"
18 #include "src/__support/macros/properties/cpu_features.h"
19 #include "src/__support/macros/properties/os.h"
51 // "include/llvm-libc-macros/float16-macros.h"
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dmacro-to-enum.cpp7 // These macros are skipped due to being inside a conditional compilation block.
14 // Macros expanding to expressions involving only literals are converted.
109 // Undefining a macro invalidates adjacent macros
126 // Undefining a macro later invalidates the set of possible adjacent macros
223 // Macros appearing in conditional expressions can't be replaced
274 // Conditional compilation blocks invalidate adjacent macros
276 // blocks could contain macros that should rightly be included
300 // Macros used in conditions are invalidated, even if they look
325 // These macros do not expand to integral constants.
332 // Ignore macros invoking comma operator unless they are inside parens.
[all …]
/llvm-project/libcxx/test/libcxx/
H A Dsystem_reserved_names.gen.py10 # alphabetic macros. Also ensure that we don't swallow the definition of user
11 # provided macros (in other words, ensure that we push/pop correctly everywhere).
73 // Test that libc++ doesn't use names that collide with FreeBSD system macros.
74 // newlib and picolibc also define these macros
80 // tchar.h defines these macros on Windows
95 // Test that libc++ doesn't use names that collide with Win32 API macros.
163 // The classic Windows min/max macros
167 // Test to make sure curses has no conflicting macros with the standard library
186 // Make sure we don't swallow the definition of the macros we push/pop

12345678910>>...82