Clang-format cleanup
It looks like some of the code reviews in progress contain clang-format
fixes as well.
This squashes all of the clang-format fixes into a single commit, that
hopefully can go through the process a little faster, as it should only
be whitespace changes.
In the past, clang-formatting the naughty strings file proved
to return inconsistent results, and even formatted files would still be
detected as unformatted. Aparently the solution was to run
clang-format-5.0 approximately 20 times in a loop, until it decided on
a code layout that it was ok with iteration to iteration.
This is a bit of a corner case, so I don't think we need to get CI
running multiple runs in the future, and can just handle this on a case
by case basis. I'd be surprised if anyone else had this issue.
Change-Id: I57e2a03676bce20dc376fd9cea724732b2dc7010
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/include/big_list_of_naughty_strings.hpp b/include/big_list_of_naughty_strings.hpp
index fd492ce..8438366 100644
--- a/include/big_list_of_naughty_strings.hpp
+++ b/include/big_list_of_naughty_strings.hpp
@@ -1,3 +1,7 @@
+#pragma once
+
+// clang-format off
+
const std::string naughty_strings[] = {
// sourced from
// https://raw.githubusercontent.com/minimaxir/big-list-of-naughty-strings/master/blns.txt
@@ -68,25 +72,223 @@
// Unicode additional control characters: all of the characters with
// general category Cf (in Unicode 8.0.0).
// The next line may appear to be blank or mojibake in some viewers.
- "ᅡᆳタチツテトナワᅴンᅵマ£ᅠホ¬タヒ¬タフ¬タヘ¬タホ¬タマ¬タᆰ¬タᆱ¬タᆲ¬"
- "タᆳ¬タᆴ¬チᅠ¬チᄀ¬チᄁ¬チᆪ¬チᄂ¬チᆭ¬チᄃ¬チᄄ¬チᄅ¬チᆰ¬チᆱ¬チᆲ¬チᆳ¬チᆴ¬チᆵᄏ"
+ "ᅡᆳタチツテトナワᅴンᅵマ£ᅠホ¬"
+ "タ"
+ "ヒ"
+ "¬"
+ "タ"
+ "フ"
+ "¬"
+ "タ"
+ "ヘ"
+ "¬"
+ "タ"
+ "ホ"
+ "¬"
+ "タ"
+ "マ"
+ "¬"
+ "タ"
+ "ᆰ"
+ "¬"
+ "タ"
+ "ᆱ"
+ "¬"
+ "タ"
+ "ᆲ"
+ "¬"
+ "タᆳ¬タᆴ¬チᅠ¬チᄀ¬チᄁ¬チᆪ¬チᄂ¬チᆭ¬"
+ "チ"
+ "ᄃ"
+ "¬"
+ "チ"
+ "ᄄ"
+ "¬"
+ "チ"
+ "ᄅ"
+ "¬"
+ "チ"
+ "ᆰ"
+ "¬"
+ "チ"
+ "ᆱ"
+ "¬"
+ "チ"
+ "ᆲ"
+ "¬"
+ "チ"
+ "ᆳ"
+ "¬"
+ "チ"
+ "ᆴ"
+ "¬"
+ "チ"
+ "ᆵ"
+ ""
+ "ᄏ"
""
- "ᄍᄎᄏムツᄑロᄇᅠロᄇᄀロᄇᄁロᄇᆪンナᄈンナᄡンナᄉンナᄊ"
- "ンナᄋンナᄌンナᄍンナᄎᅠタチᅠタᅠᅠタᄀᅠタᄁᅠタᆪᅠタᄂ"
+ "ᄍᄎᄏムツᄑロᄇᅠロᄇᄀロᄇᄁ"
+ ""
+ "ロ"
+ "ᄇ"
+ "ᆪ"
+ ""
+ "ン"
+ "ナ"
+ "ᄈ"
+ ""
+ "ン"
+ "ナ"
+ "ᄡ"
+ ""
+ "ン"
+ "ナ"
+ "ᄉ"
+ ""
+ "ン"
+ "ナ"
+ "ᄊ"
+ "ンナᄋンナᄌンナᄍンナᄎᅠタチᅠタᅠ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᄀ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᄁ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᆪ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᄂ"
"ᅠ"
- "タᆬᅠタᆭᅠタᄃᅠタᄄᅠタᄅᅠタᆰᅠタᆱᅠタᆲᅠタᆳᅠタᆴ"
- "ᅠタᆵᅠタᄚᅠタᄆᅠタᄇᅠタᄈᅠタᄡᅠタᄉᅠタᄊᅠタᄋ"
+ "タᆬᅠタᆭᅠタᄃᅠタᄄᅠタᄅᅠタᆰᅠ"
+ "タ"
+ "ᆱ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᆲ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᆳ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᆴ"
+ "ᅠタᆵᅠタᄚᅠタᄆᅠタᄇᅠタᄈᅠタᄡ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᄉ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᄊ"
+ ""
+ "ᅠ"
+ "タ"
+ "ᄋ"
"ᅠタᄌ"
- "ᅠタᄍᅠタᄎᅠタᄏᅠタᄐᅠタᄑᅠタᄒᅠタᅠチタᅠチチ"
- "ᅠチツᅠチテᅠチトᅠチナᅠチニᅠチヌᅠチネᅠチノᅠチハ"
+ "ᅠタᄍᅠタᄎᅠタᄏᅠタᄐᅠタᄑᅠタᄒ"
+ ""
+ "ᅠ"
+ "タ"
+ ""
+ ""
+ "ᅠ"
+ "チ"
+ "タ"
+ ""
+ "ᅠ"
+ "チ"
+ "チ"
+ "ᅠチツᅠチテᅠチトᅠチナᅠチニᅠチヌ"
+ ""
+ "ᅠ"
+ "チ"
+ "ネ"
+ ""
+ "ᅠ"
+ "チ"
+ "ノ"
+ ""
+ "ᅠ"
+ "チ"
+ "ハ"
"ᅠチヒ"
- "ᅠチフᅠチヘᅠチホᅠチマᅠチミᅠチムᅠチメᅠチモᅠチヤ"
- "ᅠチユᅠチヨᅠチラᅠチリᅠチルᅠチレᅠチロᅠチワᅠチン"
+ "ᅠチフᅠチヘᅠチホᅠチマᅠチミᅠチム"
+ ""
+ "ᅠ"
+ "チ"
+ "メ"
+ ""
+ "ᅠ"
+ "チ"
+ "モ"
+ ""
+ "ᅠ"
+ "チ"
+ "ヤ"
+ "ᅠチユᅠチヨᅠチラᅠチリᅠチルᅠチレ"
+ ""
+ "ᅠ"
+ "チ"
+ "ロ"
+ ""
+ "ᅠ"
+ "チ"
+ "ワ"
+ ""
+ "ᅠ"
+ "チ"
+ "ン"
"ᅠヂ"
- "ᅠチ゚ᅠチᅠᅠチᄀᅠチᄁᅠチᆪᅠチᄂᅠチᆬᅠチᆭᅠチᄃ"
- "ᅠチᄄᅠチᄅᅠチᆰᅠチᆱᅠチᆲᅠチᆳᅠチᆴᅠチᆵᅠチᄚ"
+ "ᅠチ゚ᅠチᅠᅠチᄀᅠチᄁᅠチᆪᅠチᄂ"
+ ""
+ "ᅠ"
+ "チ"
+ "ᆬ"
+ ""
+ "ᅠ"
+ "チ"
+ "ᆭ"
+ ""
+ "ᅠ"
+ "チ"
+ "ᄃ"
+ "ᅠチᄄᅠチᄅᅠチᆰᅠチᆱᅠチᆲᅠチᆳ"
+ ""
+ "ᅠ"
+ "チ"
+ "ᆴ"
+ ""
+ "ᅠ"
+ "チ"
+ "ᆵ"
+ ""
+ "ᅠ"
+ "チ"
+ "ᄚ"
"ᅠチᄆ"
- "ᅠチᄇᅠチᄈᅠチᄡᅠチᄉᅠチᄊᅠチᄋᅠチᄌᅠチᄍᅠチᄎ"
+ "ᅠチᄇᅠチᄈᅠチᄡᅠチᄉᅠチᄊᅠチᄋ"
+ ""
+ "ᅠ"
+ "チ"
+ "ᄌ"
+ ""
+ "ᅠ"
+ "チ"
+ "ᄍ"
+ ""
+ "ᅠ"
+ "チ"
+ "ᄎ"
"ᅠチᄏᅠチᄐᅠチᄑᅠチᄒᅠチ"
"",
@@ -99,22 +301,82 @@
// Strings which contain common unicode symbols (e.g. smart quotes)
"ᅫᄅ¬ノネᅢᄃ¬ネレ¬ネᆱᅨワᅡᄉ¬ノᄂ¬ノᆬᅢᄋ", "ᅢᆬᅢ゚¬ネツᅥメᅡ례ル¬ネニᅨレᅡᆲ¬タᆭᅢᆭ",
- "ᅤモ¬ネムᅡᄡᅡᆴ¬タᅠᅡᆬᅡ뗴ニᅢ죄タ¬タワ¬タ"
+ "ᅤモ¬ネムᅡᄡᅡᆴ¬タᅠᅡᆬᅡ뗴ニᅢ죄タ¬タ"
+ "ワ"
+ "¬"
+ "タ"
"リ",
"ᅡᄀ¬ト깏ᅡᄁ¬ネ゙ᅡ다ᄊ¬タ깕ᅡᄎ¬タモ¬ノ"
"ᅠ",
"ᅡ졔ロᅢヌ¬ラハᅣ몌ワᅢツᅡᆵᅨリᅡ",
- "ᅢナᅢヘᅢホᅢマᅨンᅢモᅢヤᆪᅢメᅢレᅢニ¬リ"
+ "ᅢナᅢヘᅢホᅢマᅨンᅢモᅢヤᆪᅢメᅢレᅢニ¬"
+ "リ"
"テ",
"ᅤメ¬ダᅡᄡ¬タᄚᅨヌᅢチᅡ뗴ニᅢリ¬ネマ¬タン¬タル",
- "`¬チト¬ツᆲ¬タᄍ¬タᄎᆲチᆲツ¬タ가ᄚᅡᄋ¬タレ¬タヤᅡ"
+ "`¬チト¬ツᆲ¬タᄍ¬タᄎᆲチᆲツ¬タ가ᄚᅡ"
+ "ᄋ"
+ "¬"
+ "タ"
+ "レ"
+ "¬"
+ "タ"
+ "ヤ"
+ "ᅡ"
"ᄆ",
"¬ナロ¬ナワ¬ナン¬ナ゙",
- "チツテトナニヌネノハヒフヘホマミムメ"
- "モヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂ"
+ "チツテトナニヌネノハヒフ"
+ ""
+ "ヘ"
+ ""
+ "ホ"
+ ""
+ "マ"
+ ""
+ "ミ"
+ ""
+ "ム"
+ ""
+ "メ"
+ "モヤユヨラリルレロワン゙"
+ ""
+ "゚"
+ ""
+ "ᅠ"
+ ""
+ "ᄀ"
+ ""
+ "ᄁ"
+ ""
+ "ᆪ"
+ ""
+ "ᄂ"
"ᆬᆭ"
- "ᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌ"
- "ᄍᄎᄏᄐᄑᄒタチツテトナニヌネノハ"
+ "ᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇ"
+ ""
+ "ᄈ"
+ ""
+ "ᄡ"
+ ""
+ "ᄉ"
+ ""
+ "ᄊ"
+ ""
+ "ᄋ"
+ ""
+ "ᄌ"
+ "ᄍᄎᄏᄐᄑᄒタチツテト"
+ ""
+ "ナ"
+ ""
+ "ニ"
+ ""
+ "ヌ"
+ ""
+ "ネ"
+ ""
+ "ノ"
+ ""
+ "ハ"
"ヒフ"
"ヘホマ",
"ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅ",
@@ -122,7 +384,7 @@
// Unicode Subscript/Superscript/Accents
//
// Strings which contain unicode subscripts/superscripts; can cause
- //rendering issues
+ // rendering issues
"¬チᄚ¬チᄡ¬チᄉ", "¬ツタ¬ツチ¬ツツ", "¬チᄚ¬チᄡ¬チᄉ¬ツタ¬ツチ¬ツツ",
"¢ᄌヤ¢ᄍノ¢ᄍノ¢ᄍノ¢ᄍノ¢ᄍノ¢ᄍヌ¢ᄍヌ¢ᄍヌ¢ᄍヌ¢ᄍヌ¢ᄍノ¢ᄍノ¢ᄍノ¢ᄍノ¢ᄍノ¢ᄍヌ¢ᄍヌ¢"
@@ -150,7 +412,7 @@
// Quotation Marks
//
// Strings which contain misplaced quotation marks; can cause encoding
- //errors
+ // errors
"'", "\"", "''", "\"\"", "'\"'", "\"''''\"'\"", "\"'\"'\"''''\"",
"<foo val=¬タワbar¬タン />", "<foo val=¬タワbar¬タン />",
@@ -159,19 +421,36 @@
// Two-Byte Characters
//
// Strings which contain two-byte characters: can cause rendering issues or
- //character-length issues
+ // character-length issues
- "ヤᄚ¦ᄌᆳ ̄チユ ̄ツモ ̄チᆱ ̄チツ ̄チメ ̄チᆭ¦ᄌヒ ̄チユ ̄チ"
+ "ヤᄚ¦ᄌᆳ ̄チユ ̄ツモ ̄チᆱ ̄チツ ̄チメ ̄チᆭ"
+ "¦"
+ "ᄌ"
+ "ヒ"
+ " ̄"
+ "チ"
+ "ユ"
+ " ̄"
+ "チ"
"ト",
" ̄テム ̄テᄐ ̄テニ ̄ツᆪ ̄テᄐ ̄チᄌ│ᄀフ ̄チヒ ̄チᆰ ̄チト ̄チヒ", "¥メフ│ᆪᄑ₩ᄐᄁ│ᆰ゙",
"←テᄄ│ミᄑ₩ᅠᄐ", "↓ツᆲ■レフ↑ᄈᄐ■ユル↓ロミ ↓ヨᄡ■ユル↓ラᄚ↑ᄉᆲ↓ニフ",
- "↓ᄚᆭ↓ᄚᄄ→ᆬᄐ ■テタ↑ᄈᅠ ↓リᄄ ■ホᄇ↓ヒワ→ᄃᄄ↑ᄈᄐ "
+ "↓ᄚᆭ↓ᄚᄄ→ᆬᄐ ■テタ↑ᄈᅠ ↓リᄄ "
+ "■ホᄇ↓ヒワ→ᄃᄄ↑ᄈᄐ "
"↓ムロ→ヒᄂ→ᆭᆲ "
"→リᅠ→ᄚᄅ↑ᄚチ■ユリ",
- "ᄂᄒ₩ワテᄃム¥ᆳᄌ←ルᄁ│ᆰ゙¥ᆳᄌᅠヤᄅᄊ₩ノ"
+ "ᄂᄒ₩ワテᄃム¥ᆳᄌ←ルᄁ│ᆰ゙¥ᆳᄌᅠヤ"
+ ""
+ "ᄅ"
+ "ᄊ"
+ "₩"
+ "ノ"
"タ",
"↓レᄌ→゙タ→ᄚヤ■ニᅠ→ᆬᄡ",
- "ᅠワホᅠワᄆᅠンᄍᅠᄆモᅠᄆᄌᅠᄇヨᅠᄈ"
+ "ᅠワホᅠワᄆᅠンᄍᅠᄆモᅠᄆᄌᅠᄇヨ"
+ ""
+ "ᅠ"
+ "ᄈ"
"マ",
// Changing length when lowercased
@@ -184,14 +463,15 @@
// Japanese Emoticons
//
// Strings which consists of Japanese-style emoticons which are popular on
- //the web
+ // the web
" ̄テᄑ¢ᄐᄐ¢ᄎネトᅪワ¢ᄎネ¢ᄐᄑᄒノ "
" ̄テᄑ¢ᄐᄐ¢ᄎネトᅪワ¢ᄎネ¢ᄐᄑᄒノ",
"(ᄑᄀ¬ラユ ¬ネタ ¬ラユᄑᄀ)",
"ᄑタᄑᄄ(ᅡᄡ¬ネタᄑタ¬ネᄅ", "__ᄒロ(,_,*)",
" ̄テᄏ(ᆪ¬ネタᆪ) ̄テᄏ:*:",
- "ᄒ゚ᄑᆬ¬ワ ̄テᄒ¬ユᄇ(ᄑᄀ¬ラユ¬タ¬ラユᄑᄀ)"
+ "ᄒ゚ᄑᆬ¬ワ ̄テᄒ¬ユᄇ("
+ "ᄑᄀ¬ラユ¬タ¬ラユᄑᄀ)"
"¬ユᄆ¬ワᄑᆬᄒ゚",
", ̄タツ ̄テᄏ:*: ̄テᄏ ̄ツワ¬タル( ¬リᄏ ᅬノ ¬リᄏ ) ̄タツ ̄テᄏ:*: ̄テᄏ ̄ツワ¬タル",
"(¬ユᆵᅡᄚ¬ヨ가ᄚᄐノ¬ユᆵᄌᄉ "
@@ -203,20 +483,34 @@
// Emoji
//
// Strings which contain Emoji; should be the same behavior as two-byte
- //characters, but not always
+ // characters, but not always
"゚リヘ", "゚ムᄅ゚マᄑ",
- "゚ムᄒ ゚ルヌ ゚メチ ゚ルナ ゚ルニ ゚ルヒ ゚ルホ "
+ "゚ムᄒ ゚ルヌ ゚メチ ゚ルナ ゚ルニ "
+ "゚ルヒ "
+ "゚ルホ "
"゚ルヘ",
"゚ミᄉ ゚ルネ ゚ルノ ゚ルハ",
- "¬ンᄂᄌマ ゚メヤ ゚メフ ゚メユ ゚メ゙ ゚メモ ゚メラ ゚メヨ ゚メリ ゚メン "
+ "¬ンᄂᄌマ ゚メヤ ゚メフ ゚メユ ゚メ゙ "
+ "゚メモ "
+ "゚メラ "
+ "゚メヨ "
+ "゚メリ "
+ "゚メン "
"゚メ゚ ゚メワ ゚メロ ゚メレ "
"゚メル",
- "¬ワピマ ゚メᆰ゚マ ゚ムミ゚マ ゚ルプマ ゚ムマ゚マ "
+ "¬ワピマ ゚メᆰ゚マ ゚ムミ゚マ "
+ "゚ルプマ "
+ "゚ムマ゚マ "
"゚ルマ゚マ",
- "゚レᄒ ゚ニメ ゚ニモ ゚ニユ ゚ニヨ ゚ニラ ゚ニル "
+ "゚レᄒ ゚ニメ ゚ニモ ゚ニユ ゚ニヨ "
+ "゚ニラ "
+ "゚ニル "
"゚マᄃ",
- "0ᄌマ¬テᆪ 1ᄌマ¬テᆪ 2ᄌマ¬テᆪ 3ᄌマ¬テᆪ 4ᄌマ¬テᆪ 5ᄌマ¬テᆪ "
+ "0ᄌマ¬テᆪ 1ᄌマ¬テᆪ 2ᄌマ¬テᆪ "
+ "3ᄌマ¬テᆪ "
+ "4ᄌマ¬テᆪ "
+ "5ᄌマ¬テᆪ "
"6ᄌマ¬テᆪ 7ᄌマ¬テᆪ 8ᄌマ¬テᆪ "
"9ᄌマ¬テᆪ "
"゚ヤ゚",
@@ -228,57 +522,101 @@
"゚ヌᄎ゚ヌᄌ゚ヌᄋ゚ヌᄎ゚ヌᄌ "
"゚ヌᆭ゚ヌᆱ゚ヌᆭ゚ヌᄇ゚ヌᄌ",
- "゚ヌᄎ゚ヌᄌ゚ヌᄋ゚ヌᄎ゚ヌᄌ゚ヌᆭ゚ヌᆱ゚ヌᆭ゚ヌ"
+ "゚ヌᄎ゚ヌᄌ゚ヌᄋ゚ヌᄎ゚ヌᄌ゚ヌᆭ"
+ ""
+ "゚"
+ "ヌ"
+ "ᆱ"
+ ""
+ "゚"
+ "ヌ"
+ "ᆭ"
+ ""
+ "゚"
+ "ヌ"
"ᄇ",
"゚ヌᄎ゚ヌᄌ゚ヌᄋ゚ヌᄎ゚ヌᄌ゚ヌᆭ",
// Unicode Numbers
//
// Strings which contain unicode numbers; if the code is localized, it
- //should see the input as numeric
+ // should see the input as numeric
"ᄐムᄐメᄐモ", "ᄀᄁᆪ",
// Right-To-Left Strings
//
// Strings which contain text that should be rendered RTL if possible (e.g.
- //Arabic, Hebrew)
+ // Arabic, Hebrew)
"ᆱナ ニチᄈ ᄈツᄋᆰ "
- "ネᄄᄃトᆰᆳᆵハᆵフ, ᆲᄇハᄆᆰハ "
+ "ネᄄᄃトᆰᆳᆵハᆵフ, "
+ "ᆲᄇハᄆᆰハ "
"ᄄᄃᄈᆰᆴᆵᄃナ ᆪニ "
- "ᆵニネ. ᆬᄚ ヌニᄃ゚ ᄃトᄈᆰᄃᄆ "
- "ネᆰニᄉハᄄ テᄃニ. ᆪヌムト "
+ "ᆵニネ. ᆬᄚ ヌニᄃ゚ "
+ "ᄃトᄈᆰᄃᄆ "
+ "ネᆰニᄉハᄄ テᄃニ. "
+ "ᆪヌムト "
"ᄃハᄋᄃトハᄃフ "
- "ᄄᄆハᄋᄃニハᄃ-チᄆニᄈᄃ ツᆵ "
- "ᆪᆴᄚ. ᄈトハナᄃニフ ᆬᆰチᄃツハᄅ "
+ "ᄄᄆハᄋᄃニハᄃ-"
+ "チᄆニᄈᄃ "
+ "ツᆵ "
+ "ᆪᆴᄚ. ᄈトハナᄃニフ "
+ "ᆬᆰチᄃツハᄅ "
"ᄄハニ "
- "ナᄃ, ハᄚテᄆ ᄃトᆳᆵネᆵ ᆪハ "
+ "ナᄃ, ハᄚテᄆ "
+ "ᄃトᆳᆵネᆵ "
+ "ᆪハ "
"ᄄᄍᆵ, ナᄍᄃナトᄅ "
"ᄄネトニᆵᄃフ "
"ᄃトᆬᄋトᄃツ ᄍト "
"ᆬハネ.",
"ᅲムᅱᄚᅱ튜뛰슈ミᅲ뤼ᄡᅲチᅲルᅲᆰ, ᅲムᅱ쥐튜뛰쥬ミ ᅲミᅱ뮤ワᅱ쮸ヤᅱᄡᅲルᅲン, ᅲミᅱ슑 "
"ᅲヤᅱ유뤼쥐튜チᅲ゙ᅱ유ルᅱᄡᅲン, ᅲユᅱᄚᅲミᅱ슑 ᅲヤᅱ쥬ミᅱ쥬뛰쓙",
- "ᅲヤᅱ쥬ルᅱᄚᅲᆰᅱ쥬ヤtestᄃトᄉチᆳᄃᆰ "
+ "ᅲヤᅱ쥬ルᅱᄚᅲᆰᅱ쥬ヤtestᄃトᄉチ"
+ "ᆳ"
+ ""
+ "ᄃ"
+ ""
+ "ᆰ"
+ " "
"ᄃトᆰムᆳネト",
"ᄋᄑ", "ᄋᄎ",
- "ナマニホᄃツホᄡホᄅマ ᄈマᄄマトミ "
- "ᄃミᄈメᆰミᆴメᆵホᄃナミ"
+ "ナマニホᄃツホᄡホᄅマ "
+ "ᄈマᄄマトミ "
+ "ᄃミᄈメᆰミᆴメᆵホᄃナ"
+ ""
+ "ミ"
" "
"ᄃトトムマᄎホᄅミ チミハ "
"ᄃトニムマᄌマナミ "
"ᄃトメツホᄃᆭミナホᄅミ "
- "ネホチミハナ ハホᆴマᄉムホ "
- "ᄃトᆰムホᄋメᄄミハツホᄃᆰマ"
+ "ネホチミハナ "
+ "ハホᆴマᄉムホ "
+ "ᄃトᆰムホᄋメᄄミハツホ"
+ ""
+ "ᄃ"
+ ""
+ "ᆰ"
+ ""
+ "マ"
" "
- "ᄃトメᆳᄃᄈマネᄄミハムホᄅマフ"
+ "ᄃトメᆳᄃᄈマネᄄミハム"
+ ""
+ "ホ"
+ ""
+ "ᄅ"
+ ""
+ "マ"
+ ""
+ "フ"
" ",
// Trick Unicode
//
// Strings which contain unicode with unusual properties (e.g.
- //Right-to-left override) (c.f. http://www.unicode.org/charts/PDF/U2000.pdf)
+ // Right-to-left override) (c.f.
+ // http://www.unicode.org/charts/PDF/U2000.pdf)
"¬タᆰ¬タᆰtest¬タᆰ", "¬タᆱtest¬タᆱ", "¬タᄅtest¬タᄅ",
"test¬チᅠtest¬タᆱ", "¬チᆭtest¬チᄃ",
@@ -286,25 +624,199 @@
// Zalgo Text
//
// Strings which contain \"corrupted\" text. The corruption will not appear
- //in non-HTML text, however. (via http://www.eeemo.net)
+ // in non-HTML text, however. (via http://www.eeemo.net)
- "£ᄍᄚᅩ초초ユoᅪ゙ ᅩᄋiᅩ볿ᅪヌᅩᆰᅪルnᅩンᅩラᅪユvᅩ゚ᅩワᅩリᅩᆭᅪ゚oᅩ쏘ルᅩᄚᅩᅠkᅢ똬レᅩᆴᅩ촑ᅩ쪼모ᄂ "
+ "£ᄍᄚᅩ초초ユoᅪ゙ "
+ "ᅩᄋiᅩ볿ᅪヌᅩᆰᅪルnᅩンᅩラᅪユvᅩ゚ᅩワᅩリᅩᆭᅪ゚oᅩ쏘ルᅩᄚᅩ"
+ "ᅠ"
+ "k"
+ "ᅢ"
+ "ᄄ"
+ "ᅪ"
+ "レ"
+ "ᅩ"
+ "ᆴ"
+ "ᅩ"
+ "ᄎ"
+ "ᅩ"
+ "ᆰ"
+ "ᅩ"
+ "ᄍ"
+ "ᅩ"
+ "ᄆ"
+ "ᅩ"
+ "ᄂ"
+ " "
"ᅩヨtᅩンᅪユᅩ뽃ᅩ콝ᅪ゙hᅩ톼モᅩ볺ᅩ뽀リᅩᄇeᅪヌᅩᆪᅩᄚᅩᆭᅩᆲᅪホ "
"ᅩ꼬토코모リhᅪレᅪホᅪルᅩワᅩᆪᅩ봐ナiᅩᆭᅩ볷ᅩᄚᅩᄂvᅩ콰ヘeᅩ촔ᅩ뽉ᅩᄚ-"
"mᅩᄁiᅪナnᅩヨᅩ초゙ᅩ봂ᅩᄚdᅩ소토゚ᅪルᅩ로토リᅩᄈ "
- "ᅩ゙ᅩᆬᅩ모뽌rᅩロᅩラᅩリeᅪルpᅪᅠrᅩ토゙ᅩ콠ᅩラeᅩ초ᅠᅩᆪᅪ゚sᅩリᅪヌᅩ뽜ヘᅩンᅪノeᅪノᅩᆬᅩᆵᅩ゙ᅩ봐レᅩ"
- "ᆲᅪワᅦ쫇ᅪホᅪホᅩ゚ᅩヨᅪヌᅩᄂtᅪヘᅩᆲᅩ놔モᅩ톬ᅪリᅪナiᅩᆰᅩᄆnᅪᅠgᅩᄡᅪノ"
+ "ᅩ゙ᅩᆬᅩ모뽌rᅩロᅩラᅩリeᅪルpᅪᅠrᅩ토"
+ "゙"
+ "ᅩ"
+ "ᄏ"
+ "ᅩ"
+ "ᆳ"
+ "ᅩ"
+ "ラ"
+ "e"
+ "ᅩ"
+ "ᄎ"
+ "ᅩ"
+ "ᅠ"
+ "ᅩ"
+ "ᆪ"
+ "ᅪ"
+ "゚"
+ "s"
+ "ᅩ"
+ "リ"
+ "ᅪ"
+ "ヌ"
+ "ᅩ"
+ "ᄈ"
+ "ᅪ"
+ "ヘ"
+ "ᅩ"
+ "ン"
+ "ᅪ"
+ "ノ"
+ "e"
+ "ᅪ"
+ "ノ"
+ "ᅩ"
+ "ᆬ"
+ "ᅩ"
+ "ᆵ"
+ "ᅩ"
+ "゙"
+ "ᅩ"
+ "ᄇ"
+ "ᅪ"
+ "レ"
+ "ᅩ"
+ "ᆲᅪワᅦ쫇ᅪホᅪホᅩ゚ᅩヨᅪヌᅩᄂtᅪヘᅩᆲᅩ놔モᅩ톬ᅪリᅪナiᅩᆰᅩᄆnᅪ"
+ "ᅠ"
+ "g"
+ "ᅩ"
+ "ᄡ"
+ "ᅪ"
+ "ノ"
" "
"ᅪマᅪノᅪナcᅩᆲᅩ゚hᅪᄀaᅩᆱᅩ콢ᅪリoᅩᆱᅩ゚ᅩヨᅪヘᅩルᅩンᅪノsᅩラᅩᆭᅩᄇ.ᅩ또쫘ネᅩᆪ",
- "ᅩ과モᅩ゙ᅪナIᅩラᅩリᅩᆭᅪンnᅪヌᅪヌᅪルvᅩᆴᅩᆱokᅩ볾ᅩルᅪネiᅩヨᅪルᅩᆳᅩ쪼ᅠᅩ゙nᅩ고콡ᅩᆪᅩᄎgᅩ봐ネᅪルᅩᆳ"
+ "ᅩ과モᅩ゙ᅪナIᅩラᅩリᅩᆭᅪンnᅪヌᅪヌᅪルvᅩᆴᅩᆱokᅩ볾ᅩルᅪネiᅩヨᅪルᅩᆳᅩ쪼"
+ "ᅠ"
+ "ᅩ"
+ "゙"
+ "n"
+ "ᅩ"
+ "ᄀ"
+ "ᅩ"
+ "ᄏ"
+ "ᅩ"
+ "ᆴ"
+ "ᅩ"
+ "ᆪ"
+ "ᅩ"
+ "ᄎ"
+ "g"
+ "ᅩ"
+ "ᄇ"
+ "ᅪ"
+ "ネ"
+ "ᅪ"
+ "ル"
+ "ᅩ"
+ "ᆳ"
"ᅪルᅩᆲᅪホ ᅩᄚtᅪヤᅩᆭhᅩ゙ᅩᄇeᅩ꼬ᄂ "
- "ᅪヘᅩᆲᅩ봐ヨfᅩᄡᅩリᅪユᅩᆪᅢ똬ヨ£ᄎ쫁ᅩᄅlᅪヨᅪヤᅪレiᅪモᅪレᅩᆭᅪᅠnᅪヨᅪヘᅩラᅪモᅩ뽍gᅪヘ "
+ "ᅪヘᅩᆲᅩ봐ヨfᅩᄡᅩリᅪユᅩᆪᅢ똬ヨ£ᄎ쫁ᅩᄅlᅪヨᅪヤᅪレiᅪモᅪレᅩᆭᅪ"
+ "ᅠ"
+ "n"
+ "ᅪ"
+ "ヨ"
+ "ᅪ"
+ "ヘ"
+ "ᅩ"
+ "ラ"
+ "ᅪ"
+ "モ"
+ "ᅩ"
+ "ᄈ"
+ "ᅩ"
+ "ᆴ"
+ "g"
+ "ᅪ"
+ "ヘ"
+ " "
"ᅩᄄoᅪレᅩᆰᅪᄀfᅩリᅩᆪᅩᆲ "
"ᅩヨᅩリᅪヨᅩ゚ᅪルᅩᆴcᅭノᅪヤᅩᆱᅪヨᅪモᅪヌᅪヨᅪナhᅩ소녻ᅪレᅪヤᅢ고ラᅩ톼ユᅪナoᅩ톣ᅩᆬsᅩ뫄ネᅩ초ヨᅩᆭᅩ콰ᄁ."
"ᅩロᅩヨᅩ゙ᅩᅠᅩᆱᅩᄚ",
"ᅩラᅩ촤ヨᅩ쫊ᅪモ£ᄍᆴᅩ놔ヘᅩᆬᅪヌᅪネhᅩ보チeᅪマᅪモᅩ토ラᅩルᅩ톣ᅪヤ "
- "ᅪヌᅩワᅩ모ᅠᅪモᅪヘᅪナNᅪユᅪᅠeᅩラᅩᄆzᅩリᅩンᅩワᅩ촤ルpᅩ노초쫘ヘᅩᆵᅪレeᅩᅠᅩ코ᅠᅪワrᅩ또놔ヘᅩᄎ"
- "ᅩヨᅪヤᅩヨᅩヨdᅩᅠᅩ゚ᅩᆳᅩᆲᅩンᅪ゚iᅩᆭᅪヨᅩ롸モᅪヤᅩᄂaᅩᅠᅩラᅩᆲᅪノᅩルnᅪレᅪワ"
+ "ᅪヌᅩワᅩ모ᅠᅪモᅪヘᅪナNᅪユᅪᅠeᅩラᅩᄆzᅩ"
+ "リ"
+ "ᅩ"
+ "ン"
+ "ᅩ"
+ "ワ"
+ "ᅩ"
+ "ᄎ"
+ "ᅪ"
+ "ル"
+ "p"
+ "ᅩ"
+ "ᄂ"
+ "ᅩ"
+ "ᄎ"
+ "ᅩ"
+ "ᄍ"
+ "ᅪ"
+ "ヘ"
+ "ᅩ"
+ "ᆵ"
+ "ᅪ"
+ "レ"
+ "e"
+ "ᅩ"
+ "ᅠ"
+ "ᅩ"
+ "ᄏ"
+ "ᅩ"
+ "ᅠ"
+ "ᅪ"
+ "ワ"
+ "r"
+ "ᅩ"
+ "ᄄ"
+ "ᅩ"
+ "ᄂ"
+ "ᅪ"
+ "ヘ"
+ "ᅩ"
+ "ᄎ"
+ "ᅩヨᅪヤᅩヨᅩヨdᅩᅠᅩ゚ᅩᆳᅩᆲᅩンᅪ゚iᅩᆭᅪヨ"
+ "ᅩ"
+ "ᄅ"
+ "ᅪ"
+ "モ"
+ "ᅪ"
+ "ヤ"
+ "ᅩ"
+ "ᄂ"
+ "a"
+ "ᅩ"
+ "ᅠ"
+ "ᅩ"
+ "ラ"
+ "ᅩ"
+ "ᆲ"
+ "ᅪ"
+ "ノ"
+ "ᅩ"
+ "ル"
+ "n"
+ "ᅪ"
+ "レ"
+ "ᅪ"
+ "ワ"
" "
"ᅩ코゙ᅩᄚᅪレᅪナhᅩ솨ノiᅩ뽀゙vᅩ꽈ヌ£ᄌルᅪホᅪ゚-ᅭノᅩᆳᅩ로톼ヤmᅩ놄ᅩᆱiᅪユᅪヌᅩンᅩᆭnᅩラᅪル£ᄌヘᅩ゚ "
"ᅩᆵᅩ봐ユᅪ゙ᅦᆱᅩ゚ᅩᆵᅩᄚᅩ봐ルᅩ코ンf "
@@ -312,21 +824,92 @@
"ᅭノZᅩ고ヨᅩワᅪヨᅩᄚᅩᆪᅪノᅩワaᅪヨᅩᄚᅪルᅩᆲᅪᄀlᅩ볾ᅩ뽜ヘᅩᄅgᅩ고゚ᅩ토뫄レᅩ゙ᅩᆲᅪナoᅩラᅪワ.ᅩ゚",
"ᅩᆭHᅩᆲᅩ노ラᅩ놔ンeᅪワ ᅩワᅩᆬᅩンᅩ콰ヘᅩ゚ᅩチwᅩユhᅩヨᅩᆵᅪモoᅩンᅪルᅩヨᅪホᅩ몵 "
"ᅭノᅩ초ルᅩ゙ᅩ゚ᅪネWᅩ오톬aᅩ촑ᅪヘᅣᆵᅪネᅪユᅩᆳᅪルᅩᆵᅩワtᅩ쏘톭sᅩリᅪルᅪヨᅩユ "
- "ᅩᅠᅩᆱᅩᅠBᅩ콰ヘᅪルᅪノᅩ뽜ナeᅩᄉhᅩ솗ᅪヌᅩᆱᅪルiᅩ쫘モᅩ뽀뽍ᅪホᅩᆱᅩユnᅪ゚dᅩᄡᅩᆰᅩワᅩヨ "
+ "ᅩᅠᅩᆱᅩᅠBᅩ콰ヘᅪルᅪノᅩ뽜ナeᅩᄉhᅩ소"
+ "ᆲ"
+ "ᅪ"
+ "ヌ"
+ "ᅩ"
+ "ᆱ"
+ "ᅪ"
+ "ル"
+ "i"
+ "ᅩ"
+ "ᄍ"
+ "ᅪ"
+ "モ"
+ "ᅩ"
+ "ᄈ"
+ "ᅩ"
+ "ᄈ"
+ "ᅩ"
+ "ᆴ"
+ "ᅪ"
+ "ホ"
+ "ᅩ"
+ "ᆱ"
+ "ᅩ"
+ "ユ"
+ "n"
+ "ᅪ"
+ "゚"
+ "d"
+ "ᅩ"
+ "ᄡ"
+ "ᅩ"
+ "ᆰ"
+ "ᅩ"
+ "ワ"
+ "ᅩ"
+ "ヨ"
+ " "
"ᅩᄚᅪノᅩ롸ヌᅪルᅩ봐゙ᅪナTᅪヨᅩ톼モᅩᆰᅪᄁhᅪマᅪモᅩᆴᅩᄏeᅩᆲᅩンᅩ゚ᅪナ "
"ᅩ노쪼ンWᅪルᅩ゙ᅩンᅪヤᅪヌᅪンᅪナaᅪマᅪモᅪヤᅩ쪼톣lᅩᄡᅪヤᅩᄚᅩ노゚ᅪヤ£ᄌ폶.ᅪユ",
- "Zᅩᆴᅩ゙ᅩᅠᅪルᅪヤᅪナ£ᄌタᅩラᅩ゙ᅪネᅩ코ラ£ᄌ쏴ルᅪホᅩᆵᅩ쪼゙ᅪモGᅩᄏOᅩᆳᅩラᅩ"
+ "Zᅩᆴᅩ゙ᅩᅠᅪルᅪヤᅪナ£ᄌタᅩラᅩ゙ᅪネᅩ코"
+ "ラ"
+ "£"
+ "ᄌ"
+ "ᄊ"
+ "ᅪ"
+ "ル"
+ "ᅪ"
+ "ホ"
+ "ᅩ"
+ "ᆵ"
+ "ᅩ"
+ "ᄍ"
+ "ᅩ"
+ "゙"
+ "ᅪ"
+ "モ"
+ "G"
+ "ᅩ"
+ "ᄏ"
+ "O"
+ "ᅩ"
+ "ᆳ"
+ "ᅩ"
+ "ラ"
+ "ᅩ"
"ᆴ",
// Unicode Upsidedown
//
// Strings which contain unicode with an \"upsidedown\" effect (via
- //http://www.upsidedowntext.com)
+ // http://www.upsidedowntext.com)
- "ᅨルミnb£ᄡノlミ ミuᅥテミᆵ ᅦンᄍolop ᅧヌᅦン ᅦンᄍoqミl ᅧヌn "
- "ᅧヌunp£ᄡノp£ᄡノヤu£ᄡノ ᄍodᆵᅦンᅧヌ poᆵsn£ᄡノᅦン op pᅦンs "
+ "ᅨルミnb£ᄡノlミ ミuᅥテミᆵ ᅦンᄍolop "
+ "ᅧヌᅦン "
+ "ᅦンᄍoqミl "
+ "ᅧヌn "
+ "ᅧヌunp£ᄡノp£ᄡノヤu£ᄡノ ᄍodᆵᅦンᅧヌ "
+ "poᆵsn£ᄡノᅦン "
+ "op "
+ "pᅦンs "
"'ᅧヌ£ᄡノlᅦン "
- "ᅥテu£ᄡノヤs£ᄡノd£ᄡノpミ ᄍnᅧヌᅦンᅧヌヤᅦンsuoヤ 'ᅧヌᅦンᆵミ ᅧヌ£ᄡノs "
+ "ᅥテu£ᄡノヤs£ᄡノd£ᄡノpミ "
+ "ᄍnᅧヌᅦンᅧヌヤᅦンsuoヤ "
+ "'ᅧヌᅦンᆵミ "
+ "ᅧヌ£ᄡノs "
"ᄍolop ᆵnsd£ᄡノ "
"ᆵᅦンᄍoᅨᆬ",
"00ᅨルᅥヨ$-",
@@ -335,55 +918,79 @@
//
// Strings which contain bold/italic/etc. versions of normal characters
- "ᄐᄡᄑネᄑナ ᄑムᄑユᄑノᄑテᄑヒ ᄑツᄑメᄑマᄑラᄑホ "
- "ᄑニᄑマᄑリ ᄑハᄑユᄑヘᄑミᄑモ ᄑマᄑヨᄑナᄑメ "
+ "ᄐᄡᄑネᄑナ ᄑムᄑユᄑノᄑテᄑヒ "
+ "ᄑツᄑメᄑマᄑラᄑホ "
+ "ᄑニᄑマᄑリ ᄑハᄑユᄑヘᄑミᄑモ "
+ "ᄑマᄑヨᄑナᄑメ "
"ᄑヤᄑネᄑナ "
"ᄑフᄑチᄑレᄑル ᄑトᄑマᄑヌ",
- "ンミモンミᄀンミ゙ ンミᆰンミᆴンミᄁンミワンミᄂ "
- "ンミロンミᆱンミᄄンミᄚンミᄃ ンミ゚ンミᄄンミᄆ "
+ "ンミモンミᄀンミ゙ "
+ "ンミᆰンミᆴンミᄁンミワンミᄂ "
+ "ンミロンミᆱンミᄄンミᄚンミᄃ "
+ "ンミ゚ンミᄄンミᄆ "
"ンミᆪンミᆴンミᆭンミᄅンミᆲ "
- "ンミᄄンミᆵンミ゙ンミᆱ ンミᆳンミᄀンミ゙ "
+ "ンミᄄンミᆵンミ゙ンミᆱ "
+ "ンミᆳンミᄀンミ゙ "
"ンミᆬンミレンミᄈンミᄇ "
"ンミンンミᄄンミᅠ",
- "ンユンヨヘンヨハ ンヨヨンヨレンヨホンヨネンヨミ "
- "ンヨヌンヨランヨヤンヨワンヨモ ンヨヒンヨヤンヨン "
+ "ンユンヨヘンヨハ "
+ "ンヨヨンヨレンヨホンヨネンヨミ "
+ "ンヨヌンヨランヨヤンヨワンヨモ "
+ "ンヨヒンヨヤンヨン "
"ンヨマンヨレンヨメンヨユンヨリ "
- "ンヨヤンヨロンヨハンヨラ ンヨルンヨヘンヨハ "
+ "ンヨヤンヨロンヨハンヨラ "
+ "ンヨルンヨヘンヨハ "
"ンヨムンヨニンヨ゚ンヨ゙ "
"ンヨノンヨヤンヨフ",
- "ンムᄏンメノンメニ ンメメンメヨンメハンメトンメフ "
- "ンメテンメモンメミンメリンメマ ンメヌンメミンメル "
+ "ンムᄏンメノンメニ "
+ "ンメメンメヨンメハンメトンメフ "
+ "ンメテンメモンメミンメリンメマ "
+ "ンメヌンメミンメル "
"ンメヒンメヨンメホンメムンメヤ "
- "ンメミンメランメニンメモ ンメユンメノンメニ "
+ "ンメミンメランメニンメモ "
+ "ンメユンメノンメニ "
"ンメヘンメツンメロンメレ "
"ンメナンメミンメネ",
- "ンモᆪンモᄆンモᆴ ンモᄎンモᄒンモᄇンモᆲンモᄡ "
- "ンモᆱンモᄏンモᄌンヤタンモᄋ ンモᆵンモᄌンヤチ "
+ "ンモᆪンモᄆンモᆴ "
+ "ンモᄎンモᄒンモᄇンモᆲンモᄡ "
+ "ンモᆱンモᄏンモᄌンヤタンモᄋ "
+ "ンモᆵンモᄌンヤチ "
"ンモᄈンモᄒンモᄊンモᄍンモᄐ "
- "ンモᄌンモンモᆴンモᄏ ンモᄑンモᄆンモᆴ "
+ "ンモᄌンモンモᆴンモᄏ "
+ "ンモᄑンモᄆンモᆴ "
"ンモᄉンモᆰンヤテンヤツ "
"ンモᆳンモᄌンモᄚ",
- "ンユヒンユルンユヨ ンユᄁンユᆭンユレンユヤンユワ "
- "ンユモンユᆪンユᅠンユᄄンユ゚ ンユランユᅠンユᄅ "
+ "ンユヒンユルンユヨ "
+ "ンユᄁンユᆭンユレンユヤンユワ "
+ "ンユモンユᆪンユᅠンユᄄンユ゚ "
+ "ンユランユᅠンユᄅ "
"ンユロンユᆭンユ゙ンユᄀンユᄂ "
- "ンユᅠンユᄃンユヨンユᆪ ンユᆬンユルンユヨ "
+ "ンユᅠンユᄃンユヨンユᆪ "
+ "ンユᆬンユルンユヨ "
"ンユンンユメンユᆱンユᆰ "
"ンユユンユᅠンユリ",
- "ンレテンレムンレホ ンレレンレ゙ンレメンレフンレヤ "
- "ンレヒンレロンレリンレᅠンレラ ンレマンレリンレᄀ "
+ "ンレテンレムンレホ "
+ "ンレレンレ゙ンレメンレフンレヤ "
+ "ンレヒンレロンレリンレᅠンレラ "
+ "ンレマンレリンレᄀ "
"ンレモンレ゙ンレヨンレルンレワ "
- "ンレリンレ゚ンレホンレロ ンレンンレムンレホ "
+ "ンレリンレ゚ンレホンレロ "
+ "ンレンンレムンレホ "
"ンレユンレハンレᆪンレᄁ "
"ンレヘンレリンレミ",
- "¬メᆵ¬メᆪ¬メᅠ ¬メᆲ¬メᄚ¬メᄂ¬メ゙¬メᆭ ¬メン¬メᆳ¬メᆰ¬メᄇ¬メᄅ ¬メᄀ¬メᆰ¬メᄈ "
- "¬メᆬ¬メᄚ¬メᄄ¬メᆱ¬メᆴ ¬メᆰ¬メᄆ¬メᅠ¬メᆳ ¬メᆵ¬メᆪ¬メᅠ "
+ "¬メᆵ¬メᆪ¬メᅠ ¬メᆲ¬メᄚ¬メᄂ¬メ゙¬メᆭ "
+ "¬メン¬メᆳ¬メᆰ¬メᄇ¬メᄅ "
+ "¬メᄀ¬メᆰ¬メᄈ "
+ "¬メᆬ¬メᄚ¬メᄄ¬メᆱ¬メᆴ "
+ "¬メᆰ¬メᄆ¬メᅠ¬メᆳ "
+ "¬メᆵ¬メᆪ¬メᅠ "
"¬メᄃ¬メワ¬メᄉ¬メᄡ "
"¬メ゚¬メᆰ¬メᄁ",
// Script Injection
//
// Strings which attempt to invoke a benign script injection; shows
- //vulnerability to XSS
+ // vulnerability to XSS
"<script>alert(123)</script>",
"<script>alert('123');</script>",
@@ -705,7 +1312,7 @@
// XXE Injection (XML)
//
// String which can reveal system files when parsed by a badly configured
- //XML parser
+ // XML parser
"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><!DOCTYPE foo [ <!ELEMENT "
"foo ANY ><!ENTITY xxe SYSTEM \"file:///etc/passwd\" >]><foo>&xxe;</foo>",
@@ -713,8 +1320,9 @@
// Unwanted Interpolation
//
// Strings which can be accidentally expanded into different strings if
- //evaluated in the wrong context, e.g. used as a printf format string or via
- //Perl or
+ // evaluated in the wrong context, e.g. used as a printf format string or
+ // via
+ // Perl or
// shell eval. Might expose sensitive data from the program doing the
// interpolation, or might just represent the wrong string.
@@ -723,7 +1331,7 @@
// File Inclusion
//
// Strings which can cause user to pull in files that should not be a part
- //of a web server
+ // of a web server
"../../../../../../../../../../../etc/passwd%00",
"../../../../../../../../../../../etc/hosts",
@@ -785,7 +1393,20 @@
//
// Strings which crashed iMessage in various versions of iOS
- "Powerトマトマᄉムᄄマトマトᄉムᄄマᄆᄆ"
+ "Powerトマトマᄉムᄄマトマト"
+ "ᄉ"
+ ""
+ "ム"
+ ""
+ "ᄄ"
+ ""
+ "マ"
+ ""
+ "ᄆ"
+ ""
+ "ᄆ"
"ヒ ¢ᆬᆪ ¢ᆬᆪh ¢ᆬᆪ "
"¢ᆬᆪ¥ニラ",
- "゚マᄈ0゚フネᄌマ"};
\ No newline at end of file
+ "゚マᄈ0゚フネᄌマ"};
+
+// clang-format on
\ No newline at end of file
diff --git a/include/gzip_helper.hpp b/include/gzip_helper.hpp
index e577c1f..e14fc1b 100644
--- a/include/gzip_helper.hpp
+++ b/include/gzip_helper.hpp
@@ -5,7 +5,7 @@
#include <string>
inline bool gzipInflate(const std::string& compressedBytes,
- std::string& uncompressedBytes) {
+ std::string& uncompressedBytes) {
if (compressedBytes.empty()) {
uncompressedBytes = compressedBytes;
return true;
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 1f3b9e2..ad6104b 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -53,8 +53,8 @@
// if we're the last outstanding caller, finish the request
if (transaction.use_count() == 1) {
res.jsonValue = {{"status", "ok"},
- {"bus_name", processName},
- {"objects", std::move(*transaction)}};
+ {"bus_name", processName},
+ {"objects", std::move(*transaction)}};
res.end();
}
},
@@ -198,7 +198,7 @@
const nlohmann::json &input_json) {
int r = 0;
BMCWEB_LOG_DEBUG << "Converting " << input_json.dump()
- << " to type: " << arg_type;
+ << " to type: " << arg_type;
const std::vector<std::string> arg_types = dbus_arg_split(arg_type);
// Assume a single object for now.
@@ -335,7 +335,7 @@
} else if (boost::starts_with(arg_code, "v")) {
std::string contained_type = arg_code.substr(1);
BMCWEB_LOG_DEBUG << "variant type: " << arg_code
- << " appending variant of type: " << contained_type;
+ << " appending variant of type: " << contained_type;
r = sd_bus_message_open_container(m, SD_BUS_TYPE_VARIANT,
contained_type.c_str());
if (r < 0) {
@@ -408,7 +408,7 @@
void find_action_on_interface(std::shared_ptr<InProgressActionData> transaction,
const std::string &connectionName) {
BMCWEB_LOG_DEBUG << "find_action_on_interface for connection "
- << connectionName;
+ << connectionName;
crow::connections::systemBus->async_method_call(
[
transaction, connectionName{std::string(connectionName)}
@@ -416,16 +416,16 @@
BMCWEB_LOG_DEBUG << "got xml:\n " << introspect_xml;
if (ec) {
BMCWEB_LOG_ERROR << "Introspect call failed with error: "
- << ec.message() << " on process: " << connectionName
- << "\n";
+ << ec.message() << " on process: " << connectionName
+ << "\n";
} else {
tinyxml2::XMLDocument doc;
doc.Parse(introspect_xml.c_str());
tinyxml2::XMLNode *pRoot = doc.FirstChildElement("node");
if (pRoot == nullptr) {
- BMCWEB_LOG_ERROR << "XML document failed to parse " << connectionName
- << "\n";
+ BMCWEB_LOG_ERROR << "XML document failed to parse "
+ << connectionName << "\n";
} else {
tinyxml2::XMLElement *interface_node =
@@ -478,8 +478,8 @@
return;
}
transaction->res.jsonValue = {{"status", "ok"},
- {"message", "200 OK"},
- {"data", nullptr}};
+ {"message", "200 OK"},
+ {"data", nullptr}};
});
break;
}
@@ -526,7 +526,7 @@
}
BMCWEB_LOG_DEBUG << "GetObject returned objects "
- << interface_names.size();
+ << interface_names.size();
for (const std::pair<std::string, std::vector<std::string>> &object :
interface_names) {
@@ -546,8 +546,8 @@
res.result(boost::beast::http::status::internal_server_error);
} else {
res.jsonValue = {{"status", "ok"},
- {"message", "200 OK"},
- {"data", std::move(objectPaths)}};
+ {"message", "200 OK"},
+ {"data", std::move(objectPaths)}};
}
res.end();
},
@@ -563,8 +563,8 @@
const GetSubTreeType &object_names) {
if (ec) {
res.jsonValue = {{"message", "200 OK"},
- {"status", "ok"},
- {"data", nlohmann::json::object()}};
+ {"status", "ok"},
+ {"data", nlohmann::json::object()}};
res.end();
return;
@@ -597,14 +597,15 @@
void handle_get(crow::Response &res, std::string &object_path,
std::string &dest_property) {
- BMCWEB_LOG_DEBUG << "handle_get: " << object_path << " prop:" << dest_property;
+ BMCWEB_LOG_DEBUG << "handle_get: " << object_path
+ << " prop:" << dest_property;
std::shared_ptr<std::string> property_name =
std::make_shared<std::string>(dest_property);
using GetObjectType =
std::vector<std::pair<std::string, std::vector<std::string>>>;
crow::connections::systemBus->async_method_call(
[&res, object_path, property_name](const boost::system::error_code ec,
- const GetObjectType &object_names) {
+ const GetObjectType &object_names) {
if (ec || object_names.size() <= 0) {
res.result(boost::beast::http::status::not_found);
res.end();
@@ -653,8 +654,8 @@
}
if (response.use_count() == 1) {
res.jsonValue = {{"status", "ok"},
- {"message", "200 OK"},
- {"data", *response}};
+ {"message", "200 OK"},
+ {"data", *response}};
res.end();
}
@@ -761,7 +762,7 @@
tinyxml2::XMLNode *pRoot = doc.FirstChildElement("node");
if (pRoot == nullptr) {
BMCWEB_LOG_ERROR << "XML document failed to parse: "
- << introspectXml;
+ << introspectXml;
transaction->setErrorStatus();
return;
}
@@ -1004,9 +1005,8 @@
}
if (interfaceName.empty()) {
crow::connections::systemBus->async_method_call(
- [&, processName, objectPath](
- const boost::system::error_code ec,
- const std::string &introspect_xml) {
+ [&, processName, objectPath](const boost::system::error_code ec,
+ const std::string &introspect_xml) {
if (ec) {
BMCWEB_LOG_ERROR
<< "Introspect call failed with error: " << ec.message()
diff --git a/redfish-core/include/node.hpp b/redfish-core/include/node.hpp
index ebd8989..20d2951 100644
--- a/redfish-core/include/node.hpp
+++ b/redfish-core/include/node.hpp
@@ -74,14 +74,14 @@
void getSubRoutes(const std::vector<std::unique_ptr<Node>>& allNodes) {
const std::string* url = getUrl();
if (url == nullptr) {
- //BMCWEB_LOG_CRITICAL << "Unable to get url for route";
+ // BMCWEB_LOG_CRITICAL << "Unable to get url for route";
return;
}
for (const auto& node : allNodes) {
const std::string* route = node->getUrl();
if (route == nullptr) {
- //BMCWEB_LOG_CRITICAL << "Unable to get url for route";
+ // BMCWEB_LOG_CRITICAL << "Unable to get url for route";
continue;
}
if (boost::starts_with(*route, *url)) {
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index 4c44527..aa8d66f 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -390,17 +390,18 @@
const std::string &name,
const std::string &newValue,
const std::shared_ptr<AsyncResp> &asyncResp) {
- auto callback =
- [asyncResp, ipIdx{std::move(ipIdx)}, name{std::move(name)},
- newValue{std::move(newValue)}](const boost::system::error_code ec) {
- if (ec) {
- messages::addMessageToJson(
- asyncResp->res.jsonValue, messages::internalError(),
- "/IPv4Addresses/" + std::to_string(ipIdx) + "/" + name);
- } else {
- asyncResp->res.jsonValue["IPv4Addresses"][ipIdx][name] = newValue;
- }
- };
+ auto callback = [
+ asyncResp, ipIdx{std::move(ipIdx)}, name{std::move(name)},
+ newValue{std::move(newValue)}
+ ](const boost::system::error_code ec) {
+ if (ec) {
+ messages::addMessageToJson(
+ asyncResp->res.jsonValue, messages::internalError(),
+ "/IPv4Addresses/" + std::to_string(ipIdx) + "/" + name);
+ } else {
+ asyncResp->res.jsonValue["IPv4Addresses"][ipIdx][name] = newValue;
+ }
+ };
crow::connections::systemBus->async_method_call(
std::move(callback), "xyz.openbmc_project.Network",
@@ -428,17 +429,17 @@
const std::string &newValueDbus,
const std::shared_ptr<AsyncResp> &asyncResp) {
auto callback =
- [asyncResp, ipIdx{std::move(ipIdx)},
- newValue{std::move(newValue)}](const boost::system::error_code ec) {
- if (ec) {
- messages::addMessageToJson(
- asyncResp->res.jsonValue, messages::internalError(),
- "/IPv4Addresses/" + std::to_string(ipIdx) + "/AddressOrigin");
- } else {
- asyncResp->res.jsonValue["IPv4Addresses"][ipIdx]["AddressOrigin"] =
- newValue;
- }
- };
+ [ asyncResp, ipIdx{std::move(ipIdx)},
+ newValue{std::move(newValue)} ](const boost::system::error_code ec) {
+ if (ec) {
+ messages::addMessageToJson(
+ asyncResp->res.jsonValue, messages::internalError(),
+ "/IPv4Addresses/" + std::to_string(ipIdx) + "/AddressOrigin");
+ } else {
+ asyncResp->res.jsonValue["IPv4Addresses"][ipIdx]["AddressOrigin"] =
+ newValue;
+ }
+ };
crow::connections::systemBus->async_method_call(
std::move(callback), "xyz.openbmc_project.Network",
@@ -464,9 +465,9 @@
const std::string &ifaceId, int ipIdx, const std::string &ipHash,
const std::string &newValueStr, uint8_t &newValue,
const std::shared_ptr<AsyncResp> &asyncResp) {
- auto callback = [asyncResp, ipIdx{std::move(ipIdx)},
- newValueStr{std::move(newValueStr)}](
- const boost::system::error_code ec) {
+ auto callback = [
+ asyncResp, ipIdx{std::move(ipIdx)}, newValueStr{std::move(newValueStr)}
+ ](const boost::system::error_code ec) {
if (ec) {
messages::addMessageToJson(
asyncResp->res.jsonValue, messages::internalError(),
@@ -533,8 +534,8 @@
unsigned int ipIdx,
const std::shared_ptr<AsyncResp> &asyncResp) {
crow::connections::systemBus->async_method_call(
- [ipIdx{std::move(ipIdx)},
- asyncResp{std::move(asyncResp)}](const boost::system::error_code ec) {
+ [ ipIdx{std::move(ipIdx)}, asyncResp{std::move(asyncResp)} ](
+ const boost::system::error_code ec) {
if (ec) {
messages::addMessageToJson(
asyncResp->res.jsonValue, messages::internalError(),
@@ -562,15 +563,15 @@
uint8_t subnetMask, const std::string &gateway,
const std::string &address,
const std::shared_ptr<AsyncResp> &asyncResp) {
- auto createIpHandler =
- [ipIdx{std::move(ipIdx)},
- asyncResp{std::move(asyncResp)}](const boost::system::error_code ec) {
- if (ec) {
- messages::addMessageToJson(
- asyncResp->res.jsonValue, messages::internalError(),
- "/IPv4Addresses/" + std::to_string(ipIdx) + "/");
- }
- };
+ auto createIpHandler = [
+ ipIdx{std::move(ipIdx)}, asyncResp{std::move(asyncResp)}
+ ](const boost::system::error_code ec) {
+ if (ec) {
+ messages::addMessageToJson(
+ asyncResp->res.jsonValue, messages::internalError(),
+ "/IPv4Addresses/" + std::to_string(ipIdx) + "/");
+ }
+ };
crow::connections::systemBus->async_method_call(
std::move(createIpHandler), "xyz.openbmc_project.Network",
@@ -640,10 +641,11 @@
void getEthernetIfaceData(const std::string ðifaceId,
CallbackFunc &&callback) {
crow::connections::systemBus->async_method_call(
- [this, ethifaceId{std::move(ethifaceId)},
- callback{std::move(callback)}](
- const boost::system::error_code error_code,
- const GetManagedObjectsType &resp) {
+ [
+ this, ethifaceId{std::move(ethifaceId)}, callback{std::move(callback)}
+ ](const boost::system::error_code error_code,
+ const GetManagedObjectsType &resp) {
+
EthernetInterfaceData ethData{};
std::vector<IPv4AddressData> ipv4Data;
ipv4Data.reserve(maxIpV4AddressesPerInterface);
@@ -693,7 +695,7 @@
template <typename CallbackFunc>
void getEthernetIfaceList(CallbackFunc &&callback) {
crow::connections::systemBus->async_method_call(
- [this, callback{std::move(callback)}](
+ [ this, callback{std::move(callback)} ](
const boost::system::error_code error_code,
GetManagedObjectsType &resp) {
// Callback requires vector<string> to retrieve all available ethernet
@@ -776,27 +778,26 @@
std::string managerId = "openbmc";
// get eth interface list, and call the below callback for JSON preparation
- ethernetProvider.getEthernetIfaceList(
- [&, managerId{std::move(managerId)}](
- const bool &success, const std::vector<std::string> &iface_list) {
- if (success) {
- nlohmann::json ifaceArray = nlohmann::json::array();
- for (const std::string &ifaceItem : iface_list) {
- ifaceArray.push_back(
- {{"@odata.id", "/redfish/v1/Managers/" + managerId +
- "/EthernetInterfaces/" + ifaceItem}});
- }
- Node::json["Members"] = ifaceArray;
- Node::json["Members@odata.count"] = ifaceArray.size();
- Node::json["@odata.id"] =
- "/redfish/v1/Managers/" + managerId + "/EthernetInterfaces";
- res.jsonValue = Node::json;
- } else {
- // No success, best what we can do is return INTERNALL ERROR
- res.result(boost::beast::http::status::internal_server_error);
- }
- res.end();
- });
+ ethernetProvider.getEthernetIfaceList([&, managerId{std::move(managerId)} ](
+ const bool &success, const std::vector<std::string> &iface_list) {
+ if (success) {
+ nlohmann::json ifaceArray = nlohmann::json::array();
+ for (const std::string &ifaceItem : iface_list) {
+ ifaceArray.push_back(
+ {{"@odata.id", "/redfish/v1/Managers/" + managerId +
+ "/EthernetInterfaces/" + ifaceItem}});
+ }
+ Node::json["Members"] = ifaceArray;
+ Node::json["Members@odata.count"] = ifaceArray.size();
+ Node::json["@odata.id"] =
+ "/redfish/v1/Managers/" + managerId + "/EthernetInterfaces";
+ res.jsonValue = Node::json;
+ } else {
+ // No success, best what we can do is return INTERNALL ERROR
+ res.result(boost::beast::http::status::internal_server_error);
+ }
+ res.end();
+ });
}
// Ethernet Provider object
@@ -902,7 +903,7 @@
paramsJson["VLANId"] = inputVlanId;
OnDemandEthernetProvider::changeVlanId(
ifaceId, static_cast<uint32_t>(inputVlanId),
- [&, asyncResp, pathPrefx{std::move(pathPrefix)}](
+ [&, asyncResp, pathPrefx{std::move(pathPrefix)} ](
const boost::system::error_code ec) {
if (ec) {
messages::addMessageToJson(asyncResp->res.jsonValue,
@@ -914,7 +915,7 @@
} else if (inputVlanEnabled == false) {
// Disable VLAN
OnDemandEthernetProvider::disableVlan(
- ifaceId, [&, asyncResp, pathPrefx{std::move(pathPrefix)}](
+ ifaceId, [&, asyncResp, pathPrefx{std::move(pathPrefix)} ](
const boost::system::error_code ec) {
if (ec) {
messages::addMessageToJson(asyncResp->res.jsonValue,
@@ -1286,7 +1287,7 @@
// get single eth interface data, and call the below callback for JSON
// preparation
ethernetProvider.getEthernetIfaceData(
- ifaceId, [&, ifaceId, patchReq = std::move(patchReq)](
+ ifaceId, [&, ifaceId, patchReq = std::move(patchReq) ](
const bool &success, const EthernetInterfaceData ð_data,
const std::vector<IPv4AddressData> &ipv4_data) {
if (!success) {
@@ -1482,7 +1483,7 @@
// Get single eth interface data, and call the below callback for JSON
// preparation
ethernetProvider.getEthernetIfaceData(
- ifaceId, [&, parent_ifaceId, ifaceId, patchReq = std::move(patchReq)](
+ ifaceId, [&, parent_ifaceId, ifaceId, patchReq = std::move(patchReq) ](
const bool &success, const EthernetInterfaceData ð_data,
const std::vector<IPv4AddressData> &ipv4_data) {
if (!success) {
@@ -1644,47 +1645,45 @@
std::string rootInterfaceName = params[0];
// get eth interface list, and call the below callback for JSON preparation
- ethernetProvider.getEthernetIfaceList(
- [&, managerId{std::move(managerId)},
- rootInterfaceName{std::move(rootInterfaceName)}](
- const bool &success, const std::vector<std::string> &iface_list) {
- if (success) {
- bool rootInterfaceFound = false;
- nlohmann::json ifaceArray = nlohmann::json::array();
+ ethernetProvider.getEthernetIfaceList([
+ &, managerId{std::move(managerId)},
+ rootInterfaceName{std::move(rootInterfaceName)}
+ ](const bool &success, const std::vector<std::string> &iface_list) {
+ if (success) {
+ bool rootInterfaceFound = false;
+ nlohmann::json ifaceArray = nlohmann::json::array();
- for (const std::string &ifaceItem : iface_list) {
- if (ifaceItem == rootInterfaceName) {
- rootInterfaceFound = true;
- } else if (boost::starts_with(ifaceItem,
- rootInterfaceName + "_")) {
- ifaceArray.push_back(
- {{"@odata.id", "/redfish/v1/Managers/" + managerId +
- "/EthernetInterfaces/" +
- rootInterfaceName + "/VLANs/" +
- ifaceItem}});
- }
- }
-
- if (rootInterfaceFound) {
- Node::json["Members"] = ifaceArray;
- Node::json["Members@odata.count"] = ifaceArray.size();
- Node::json["@odata.id"] = "/redfish/v1/Managers/" + managerId +
- "/EthernetInterfaces/" +
- rootInterfaceName + "/VLANs";
- res.jsonValue = Node::json;
- } else {
- messages::addMessageToErrorJson(
- res.jsonValue, messages::resourceNotFound("EthernetInterface",
- rootInterfaceName));
- res.result(boost::beast::http::status::not_found);
- res.end();
- }
- } else {
- // No success, best what we can do is return INTERNALL ERROR
- res.result(boost::beast::http::status::internal_server_error);
+ for (const std::string &ifaceItem : iface_list) {
+ if (ifaceItem == rootInterfaceName) {
+ rootInterfaceFound = true;
+ } else if (boost::starts_with(ifaceItem, rootInterfaceName + "_")) {
+ ifaceArray.push_back(
+ {{"@odata.id", "/redfish/v1/Managers/" + managerId +
+ "/EthernetInterfaces/" + rootInterfaceName +
+ "/VLANs/" + ifaceItem}});
}
+ }
+
+ if (rootInterfaceFound) {
+ Node::json["Members"] = ifaceArray;
+ Node::json["Members@odata.count"] = ifaceArray.size();
+ Node::json["@odata.id"] = "/redfish/v1/Managers/" + managerId +
+ "/EthernetInterfaces/" + rootInterfaceName +
+ "/VLANs";
+ res.jsonValue = Node::json;
+ } else {
+ messages::addMessageToErrorJson(
+ res.jsonValue, messages::resourceNotFound("EthernetInterface",
+ rootInterfaceName));
+ res.result(boost::beast::http::status::not_found);
res.end();
- });
+ }
+ } else {
+ // No success, best what we can do is return INTERNALL ERROR
+ res.result(boost::beast::http::status::internal_server_error);
+ }
+ res.end();
+ });
}
void doPost(crow::Response &res, const crow::Request &req,
@@ -1719,49 +1718,49 @@
}
// get eth interface list, and call the below callback for JSON preparation
- ethernetProvider.getEthernetIfaceList(
- [&, managerId{std::move(managerId)},
- rootInterfaceName{std::move(rootInterfaceName)}](
- const bool &success, const std::vector<std::string> &iface_list) {
- if (success) {
- bool rootInterfaceFound = false;
+ ethernetProvider.getEthernetIfaceList([
+ &, managerId{std::move(managerId)},
+ rootInterfaceName{std::move(rootInterfaceName)}
+ ](const bool &success, const std::vector<std::string> &iface_list) {
+ if (success) {
+ bool rootInterfaceFound = false;
- for (const std::string &ifaceItem : iface_list) {
- if (ifaceItem == rootInterfaceName) {
- rootInterfaceFound = true;
- break;
- }
- }
-
- if (rootInterfaceFound) {
- ethernetProvider.createVlan(
- rootInterfaceName, vlanId,
- [&, vlanId, rootInterfaceName,
- req{std::move(req)}](const boost::system::error_code ec) {
- if (ec) {
- messages::addMessageToErrorJson(
- res.jsonValue, messages::internalError());
- res.end();
- } else {
- memberVlan.doGet(
- res, req,
- {rootInterfaceName,
- rootInterfaceName + "_" + std::to_string(vlanId)});
- }
- });
- } else {
- messages::addMessageToErrorJson(
- res.jsonValue, messages::resourceNotFound("EthernetInterface",
- rootInterfaceName));
- res.result(boost::beast::http::status::not_found);
- res.end();
- }
- } else {
- // No success, best what we can do is return INTERNALL ERROR
- res.result(boost::beast::http::status::internal_server_error);
- res.end();
+ for (const std::string &ifaceItem : iface_list) {
+ if (ifaceItem == rootInterfaceName) {
+ rootInterfaceFound = true;
+ break;
}
- });
+ }
+
+ if (rootInterfaceFound) {
+ ethernetProvider.createVlan(
+ rootInterfaceName, vlanId,
+ [&, vlanId, rootInterfaceName,
+ req{std::move(req)} ](const boost::system::error_code ec) {
+ if (ec) {
+ messages::addMessageToErrorJson(res.jsonValue,
+ messages::internalError());
+ res.end();
+ } else {
+ memberVlan.doGet(
+ res, req,
+ {rootInterfaceName,
+ rootInterfaceName + "_" + std::to_string(vlanId)});
+ }
+ });
+ } else {
+ messages::addMessageToErrorJson(
+ res.jsonValue, messages::resourceNotFound("EthernetInterface",
+ rootInterfaceName));
+ res.result(boost::beast::http::status::not_found);
+ res.end();
+ }
+ } else {
+ // No success, best what we can do is return INTERNALL ERROR
+ res.result(boost::beast::http::status::internal_server_error);
+ res.end();
+ }
+ });
}
// Ethernet Provider object
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index 836249a..f1c3d92 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -116,7 +116,7 @@
};
BMCWEB_LOG_DEBUG << "Get available system components.";
crow::connections::systemBus->async_method_call(
- [name, aResp{std::move(aResp)}](
+ [ name, aResp{std::move(aResp)} ](
const boost::system::error_code ec,
const std::vector<std::pair<
std::string,
@@ -146,7 +146,7 @@
BMCWEB_LOG_DEBUG << "Found name: " << name;
const std::string connectionName = connectionNames[0].first;
crow::connections::systemBus->async_method_call(
- [aResp, name(std::string(name))](
+ [ aResp, name(std::string(name)) ](
const boost::system::error_code ec,
const std::vector<std::pair<std::string, VariantType>>
&propertiesList) {
@@ -332,9 +332,9 @@
CallbackFunc &&callback) {
BMCWEB_LOG_DEBUG << "Get led groups";
crow::connections::systemBus->async_method_call(
- [aResp{std::move(aResp)}, &callback](
- const boost::system::error_code &ec,
- const ManagedObjectsType &resp) {
+ [
+ aResp{std::move(aResp)}, &callback
+ ](const boost::system::error_code &ec, const ManagedObjectsType &resp) {
if (ec) {
BMCWEB_LOG_DEBUG << "DBUS response error " << ec;
aResp->setErrorStatus();
@@ -372,8 +372,9 @@
CallbackFunc &&callback) {
BMCWEB_LOG_DEBUG << "Get identify led properties";
crow::connections::systemBus->async_method_call(
- [aResp{std::move(aResp)}, &callback](const boost::system::error_code ec,
- const PropertiesType &properties) {
+ [ aResp{std::move(aResp)}, &callback ](
+ const boost::system::error_code ec,
+ const PropertiesType &properties) {
if (ec) {
BMCWEB_LOG_DEBUG << "DBUS response error " << ec;
aResp->setErrorStatus();
@@ -645,7 +646,7 @@
// Update led group
BMCWEB_LOG_DEBUG << "Update led group.";
crow::connections::systemBus->async_method_call(
- [&, asyncResp{std::move(asyncResp)}](
+ [&, asyncResp{std::move(asyncResp)} ](
const boost::system::error_code ec) {
if (ec) {
BMCWEB_LOG_DEBUG << "DBUS response error " << ec;
@@ -663,7 +664,7 @@
// Update identify led status
BMCWEB_LOG_DEBUG << "Update led SoftwareInventoryCollection.";
crow::connections::systemBus->async_method_call(
- [&, asyncResp{std::move(asyncResp)}](
+ [&, asyncResp{std::move(asyncResp)} ](
const boost::system::error_code ec) {
if (ec) {
BMCWEB_LOG_DEBUG << "DBUS response error " << ec;