[llvm] 455cce3 - TrigramIndex.cpp - remove unnecessary includes. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 03:43:34 PDT 2020


Author: Simon Pilgrim
Date: 2020-09-09T11:38:31+01:00
New Revision: 455cce3e216ba3cac0844b4ee9cf85791c1ac046

URL: https://github.com/llvm/llvm-project/commit/455cce3e216ba3cac0844b4ee9cf85791c1ac046
DIFF: https://github.com/llvm/llvm-project/commit/455cce3e216ba3cac0844b4ee9cf85791c1ac046.diff

LOG: TrigramIndex.cpp - remove unnecessary includes. NFCI.

TrigramIndex.h already includes most of these.

Added: 
    

Modified: 
    llvm/include/llvm/Support/TrigramIndex.h
    llvm/lib/Support/TrigramIndex.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/TrigramIndex.h b/llvm/include/llvm/Support/TrigramIndex.h
index d635694eb5fd..360ab9459790 100644
--- a/llvm/include/llvm/Support/TrigramIndex.h
+++ b/llvm/include/llvm/Support/TrigramIndex.h
@@ -27,7 +27,7 @@
 #define LLVM_SUPPORT_TRIGRAMINDEX_H
 
 #include "llvm/ADT/SmallVector.h"
-
+#include "llvm/ADT/StringRef.h"
 #include <string>
 #include <unordered_map>
 #include <vector>

diff  --git a/llvm/lib/Support/TrigramIndex.cpp b/llvm/lib/Support/TrigramIndex.cpp
index 88375e6e7863..1f1f3022b0b3 100644
--- a/llvm/lib/Support/TrigramIndex.cpp
+++ b/llvm/lib/Support/TrigramIndex.cpp
@@ -15,12 +15,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/TrigramIndex.h"
-#include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/StringRef.h"
-
 #include <set>
-#include <string>
-#include <unordered_map>
 
 using namespace llvm;
 


        


More information about the llvm-commits mailing list