Skip to content

Commit 79419bd

Browse files
use empty() instead of literal
1 parent 126630e commit 79419bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/utils/HdrGen/PublicAPICommand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void writeAPIFromIndex(APIIndexer &G,
114114
auto GetNamespace = [](llvm::Record *Instance) {
115115
auto Namespace = Instance->getValueAsString("Namespace");
116116
// Empty namespace is likely to be most standard-compliant.
117-
if (Namespace == "")
117+
if (Namespace.empty())
118118
return AttributeNamespace::None;
119119
// Dispatch clang version before gnu version.
120120
if (Namespace == "clang")

0 commit comments

Comments
 (0)