summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/StringExtras.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-05-31 17:01:42 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-05-31 17:01:42 +0000
commit745918ff87f17fae86edcdfac8daa16f44c8b1e0 (patch)
tree3f575e1742afd5c774dfda880087e32723052c4d /llvm/lib/Support/StringExtras.cpp
parent5430b7375565a27ccadcf4a413153a3ceac8715a (diff)
downloadbcm5719-llvm-745918ff87f17fae86edcdfac8daa16f44c8b1e0.tar.gz
bcm5719-llvm-745918ff87f17fae86edcdfac8daa16f44c8b1e0.zip
[ADT] Make escaping fn conform to coding guidelines
As noted by Adrian on llvm-commits, PrintHTMLEscaped and PrintEscaped in StringExtras did not conform to the LLVM coding guidelines. This commit rectifies that. llvm-svn: 333669
Diffstat (limited to 'llvm/lib/Support/StringExtras.cpp')
-rw-r--r--llvm/lib/Support/StringExtras.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/StringExtras.cpp b/llvm/lib/Support/StringExtras.cpp
index d8f8ff4f604..d566b72a8d0 100644
--- a/llvm/lib/Support/StringExtras.cpp
+++ b/llvm/lib/Support/StringExtras.cpp
@@ -58,7 +58,7 @@ void llvm::SplitString(StringRef Source,
}
}
-void llvm::PrintEscapedString(StringRef Name, raw_ostream &Out) {
+void llvm::printEscapedString(StringRef Name, raw_ostream &Out) {
for (unsigned i = 0, e = Name.size(); i != e; ++i) {
unsigned char C = Name[i];
if (isprint(C) && C != '\\' && C != '"')
@@ -68,7 +68,7 @@ void llvm::PrintEscapedString(StringRef Name, raw_ostream &Out) {
}
}
-void llvm::PrintHTMLEscaped(StringRef String, raw_ostream &Out) {
+void llvm::printHTMLEscaped(StringRef String, raw_ostream &Out) {
for (char C : String) {
if (C == '&')
Out << "&amp;";
OpenPOWER on IntegriCloud