aboutsummaryrefslogtreecommitdiff
path: root/src/error-demo/error-demo.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-04-29 10:14:32 -0600
committerBen Burdette <bburdette@gmail.com>2020-04-29 10:14:32 -0600
commite2f61263ebf41958f4f3d6f6135377024e33457c (patch)
tree98bc0575a452f3282fcf385a32a2d24363389d6d /src/error-demo/error-demo.cc
parent22e6490311015e076a09d5608834bd0dec1d7020 (diff)
uncrustify formatting
Diffstat (limited to 'src/error-demo/error-demo.cc')
-rw-r--r--src/error-demo/error-demo.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/error-demo/error-demo.cc b/src/error-demo/error-demo.cc
index 98018ca0e..437a761c4 100644
--- a/src/error-demo/error-demo.cc
+++ b/src/error-demo/error-demo.cc
@@ -29,38 +29,38 @@ int main()
ErrorInfo { .level = lvlInfo,
.name = "Info name",
.description = "Info description",
- });
+ });
logger->logEI(
ErrorInfo { .level = lvlTalkative,
.name = "Talkative name",
.description = "Talkative description",
- });
+ });
logger->logEI(
ErrorInfo { .level = lvlChatty,
.name = "Chatty name",
.description = "Chatty description",
- });
+ });
logger->logEI(
ErrorInfo { .level = lvlDebug,
.name = "Debug name",
.description = "Debug description",
- });
+ });
logger->logEI(
ErrorInfo { .level = lvlVomit,
.name = "Vomit name",
.description = "Vomit description",
- });
+ });
// Error in a program; no hint and no nix code.
logError(
ErrorInfo { .name = "name",
.description = "error description",
- });
+ });
// Warning with name, description, and hint.
// The hintfmt function makes all the substituted text yellow.
@@ -68,7 +68,7 @@ int main()
ErrorInfo { .name = "name",
.description = "error description",
.hint = hintfmt("there was a %1%", "warning"),
- });
+ });
// Warning with nix file, line number, column, and the lines of
@@ -80,28 +80,28 @@ int main()
ErrorInfo { .name = "warning name",
.description = "warning description",
.hint = hintfmt("this hint has %1% templated %2%!!",
- "yellow",
- "values"),
+ "yellow",
+ "values"),
.nixCode = NixCode {
.errPos = Pos(problem_file, 40, 13),
.prevLineOfCode = std::nullopt,
.errLineOfCode = "this is the problem line of code",
.nextLineOfCode = std::nullopt
- }});
+ }});
// Error with previous and next lines of code.
logError(
ErrorInfo { .name = "error name",
.description = "error description",
.hint = hintfmt("this hint has %1% templated %2%!!",
- "yellow",
- "values"),
+ "yellow",
+ "values"),
.nixCode = NixCode {
.errPos = Pos(problem_file, 40, 13),
.prevLineOfCode = std::optional("previous line of code"),
.errLineOfCode = "this is the problem line of code",
.nextLineOfCode = std::optional("next line of code"),
- }});
+ }});
return 0;