Home
last modified time | relevance | path

Searched refs:Colors (Results 1 – 25 of 37) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DEnumeratedArrayTest.cpp26 EnumeratedArray<float, Colors, Colors::Last, size_t> Array1; in TEST()
28 Array1[Colors::Red] = 1.0; in TEST()
29 Array1[Colors::Blue] = 2.0; in TEST()
30 Array1[Colors::Green] = 3.0; in TEST()
38 EXPECT_TRUE(Array2[Colors::Red]); in TEST()
39 EXPECT_TRUE(Array2[Colors::Blue]); in TEST()
40 EXPECT_TRUE(Array2[Colors::Green]); in TEST()
42 Array2[Colors::Red] = true; in TEST()
43 Array2[Colors::Blue] = false; in TEST()
44 Array2[Colors::Green] = true; in TEST()
[all …]
/llvm-project-15.0.7/clang/tools/diagtool/
H A DTreeView.cpp24 using Colors = llvm::raw_ostream::Colors; typedef in TreePrinter
64 out << Colors::RED; in printGroup()
66 out << Colors::GREEN; in printGroup()
68 out << Colors::YELLOW; in printGroup()
70 out << "-W" << Group.getName() << "\n" << Colors::RESET; in printGroup()
80 out << Colors::GREEN; in printGroup()
82 out << DR.getName() << Colors::RESET << "\n"; in printGroup()
128 out << '\n' << Colors::GREEN << "GREEN" << Colors::RESET in showKey()
130 out << '\n' << Colors::RED << "RED" << Colors::RESET in showKey()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A Draw_ostream.h98 enum class Colors { enum
111 static constexpr Colors BLACK = Colors::BLACK;
112 static constexpr Colors RED = Colors::RED;
113 static constexpr Colors GREEN = Colors::GREEN;
114 static constexpr Colors YELLOW = Colors::YELLOW;
115 static constexpr Colors BLUE = Colors::BLUE;
116 static constexpr Colors MAGENTA = Colors::MAGENTA;
117 static constexpr Colors CYAN = Colors::CYAN;
118 static constexpr Colors WHITE = Colors::WHITE;
119 static constexpr Colors SAVEDCOLOR = Colors::SAVEDCOLOR;
[all …]
H A DWithColor.h71 raw_ostream::Colors Color = raw_ostream::SAVEDCOLOR,
120 WithColor &changeColor(raw_ostream::Colors Color, bool Bold = false,
H A DFormattedStream.h148 raw_ostream &changeColor(enum Colors Color, bool Bold, bool BG) override { in changeColor()
/llvm-project-15.0.7/flang/lib/Frontend/
H A DTextDiagnostic.cpp21 static const enum llvm::raw_ostream::Colors noteColor =
23 static const enum llvm::raw_ostream::Colors remarkColor =
25 static const enum llvm::raw_ostream::Colors warningColor =
27 static const enum llvm::raw_ostream::Colors errorColor = llvm::raw_ostream::RED;
28 static const enum llvm::raw_ostream::Colors fatalColor = llvm::raw_ostream::RED;
30 static const enum llvm::raw_ostream::Colors savedColor =
/llvm-project-15.0.7/llvm/lib/DebugInfo/Symbolize/
H A DMarkupFilter.cpp411 OS.changeColor(raw_ostream::Colors::SAVEDCOLOR, Bold); in trySGR()
415 .Case("\033[30m", raw_ostream::Colors::BLACK) in trySGR()
416 .Case("\033[31m", raw_ostream::Colors::RED) in trySGR()
417 .Case("\033[32m", raw_ostream::Colors::GREEN) in trySGR()
418 .Case("\033[33m", raw_ostream::Colors::YELLOW) in trySGR()
419 .Case("\033[34m", raw_ostream::Colors::BLUE) in trySGR()
421 .Case("\033[36m", raw_ostream::Colors::CYAN) in trySGR()
422 .Case("\033[37m", raw_ostream::Colors::WHITE) in trySGR()
439 OS.changeColor(Color == raw_ostream::Colors::BLUE ? raw_ostream::Colors::CYAN in highlight()
448 OS.changeColor(raw_ostream::Colors::GREEN, Bold); in highlightValue()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-cov/
H A DCoverageViewOptions.h29 bool Colors; member
58 raw_ostream::Colors Color) const { in colored_ostream()
59 return llvm::colored_ostream(OS, Color, Colors); in colored_ostream()
H A DSourceCoverageViewText.cpp105 Optional<raw_ostream::Colors> Highlight; in renderLine()
118 getOptions().Colors && Highlight, /*Bold=*/false, in renderLine()
135 getOptions().Colors && Highlight, /*Bold=*/false, /*BG=*/true) in renderLine()
157 Line.hasMultipleRegions() && getOptions().Colors) in renderLineCoverageColumn()
251 getOptions().Colors && !R.ExecutionCount, in renderBranchView()
261 getOptions().Colors && !R.FalseExecutionCount, in renderBranchView()
H A DRenderingSupport.h50 raw_ostream::Colors Color,
/llvm-project-15.0.7/lld/Common/
H A DErrorHandler.cpp207 void ErrorHandler::reportDiagnostic(StringRef location, Colors c, in reportDiagnostic()
215 os << c << diagKind << ": " << Colors::RESET; in reportDiagnostic()
228 reportDiagnostic(logName, Colors::RESET, "", msg); in log()
249 reportDiagnostic(getLocation(msg), Colors::MAGENTA, "warning", msg); in warn()
275 reportDiagnostic(getLocation(msg), Colors::RED, "error", msg); in error()
277 reportDiagnostic(logName, Colors::RED, "error", errorLimitExceededMsg); in error()
/llvm-project-15.0.7/llvm/lib/Support/
H A Draw_ostream.cpp65 constexpr raw_ostream::Colors raw_ostream::BLACK;
66 constexpr raw_ostream::Colors raw_ostream::RED;
67 constexpr raw_ostream::Colors raw_ostream::GREEN;
68 constexpr raw_ostream::Colors raw_ostream::YELLOW;
69 constexpr raw_ostream::Colors raw_ostream::BLUE;
70 constexpr raw_ostream::Colors raw_ostream::MAGENTA;
71 constexpr raw_ostream::Colors raw_ostream::CYAN;
72 constexpr raw_ostream::Colors raw_ostream::WHITE;
74 constexpr raw_ostream::Colors raw_ostream::RESET;
144 raw_ostream &raw_ostream::operator<<(Colors C) { in operator <<()
[all …]
H A DGraphWriter.cpp92 static const char* Colors[NumColors] = { in getColorString() local
96 return Colors[ColorNumber % NumColors]; in getColorString()
/llvm-project-15.0.7/bolt/lib/Profile/
H A DHeatmap.cpp63 auto changeColor = [&](raw_ostream::Colors Color) -> void { in print()
132 static raw_ostream::Colors Colors[] = { in print() local
135 constexpr size_t NumRanges = sizeof(Colors) / sizeof(Colors[0]); in print()
148 changeColor(Colors[I]); in print()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dinstantiate-non-dependent-types.cpp41 enum Colors {red, green, blue}; enum
44 C<Q, Colors> dummyColors;
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DEHPersonalities.cpp118 ColorVector &Colors = BlockColors[Visiting]; in colorEHFunclets() local
119 if (!is_contained(Colors, Color)) in colorEHFunclets()
120 Colors.push_back(Color); in colorEHFunclets()
/llvm-project-15.0.7/llvm/test/TableGen/
H A Dinterleave.td64 // CHECK: Colors = ["red", "green", "yellow"];
68 list<string> Colors = ["red", "green", "yellow"];
69 string ColorList = !interleave(Ishify<Colors>.ret, ", ");
/llvm-project-15.0.7/lld/include/lld/Common/
H A DErrorHandler.h124 using Colors = raw_ostream::Colors;
127 void reportDiagnostic(StringRef location, Colors c, StringRef diagKind,
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/unord.hash/
H A Denum.pass.cpp22 enum class Colors { red, orange, yellow, green, blue, indigo, violet }; enum
57 test<Colors>(); in main()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dsuspicious-missing-comma.cpp14 const wchar_t* Colors[] = { variable
/llvm-project-15.0.7/clang/lib/Frontend/
H A DTextDiagnostic.cpp26 static const enum raw_ostream::Colors noteColor =
28 static const enum raw_ostream::Colors remarkColor =
30 static const enum raw_ostream::Colors fixitColor =
32 static const enum raw_ostream::Colors caretColor =
34 static const enum raw_ostream::Colors warningColor =
36 static const enum raw_ostream::Colors templateColor =
38 static const enum raw_ostream::Colors errorColor = raw_ostream::RED;
39 static const enum raw_ostream::Colors fatalColor = raw_ostream::RED;
41 static const enum raw_ostream::Colors savedColor =
/llvm-project-15.0.7/clang/utils/analyzer/
H A DCmpRuns.py54 class Colors: class
525 report = Colors.GREEN + report + Colors.CLEAR
527 report = Colors.RED + report + Colors.CLEAR
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAGHVX.cpp110 Colors.clear(); in Coloring()
114 return Colors; in colors()
127 MapType Colors; member
139 auto F = Colors.find(N); in getColor()
204 if (Colors.count(N)) in color()
210 Colors[N] = other(P.second); in color()
229 if (!Colors.count(N)) in color()
257 Colors[N] = ColorN; in color()
258 Colors[C] = ColorC; in color()
263 if (Colors.count(I) == 0) in color()
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTDumperUtils.h30 llvm::raw_ostream::Colors Color;
/llvm-project-15.0.7/llvm/tools/llvm-mca/Views/
H A DTimelineView.cpp109 static raw_ostream::Colors chooseColor(unsigned CumulativeCycles, in chooseColor()
126 raw_ostream::Colors Color = chooseColor(Cycles, Executions, BufferSize); in tryChangeColor()

12