Skip to content

Commit fb2cc9b

Browse files
committed
[Analysis] 'static' function 'shortenFileName' should be declared 'static inline' (NFC)
llvm-project/llvm/include/llvm/Analysis/DOTGraphTraitsPass.h:89:13: error: 'static' function 'shortenFileName' declared in header file should be declared 'static inline' [-Werror,-Wunneeded-internal-declaration] static void shortenFileName(std::string &FN, unsigned char len = 250) {
1 parent 777a67b commit fb2cc9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Analysis/DOTGraphTraitsPass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct DOTGraphTraitsViewer
8686
StringRef Name;
8787
};
8888

89-
static void shortenFileName(std::string &FN, unsigned char len = 250) {
89+
static inline void shortenFileName(std::string &FN, unsigned char len = 250) {
9090

9191
FN = FN.substr(0, len);
9292

0 commit comments

Comments
 (0)