diff options
Diffstat (limited to 'include/clang/Sema/CodeCompleteConsumer.h')
| -rw-r--r-- | include/clang/Sema/CodeCompleteConsumer.h | 25 | 
1 files changed, 7 insertions, 18 deletions
| diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h index 92a4e9a42f15..de65c43c76b2 100644 --- a/include/clang/Sema/CodeCompleteConsumer.h +++ b/include/clang/Sema/CodeCompleteConsumer.h @@ -17,6 +17,7 @@  #include "clang/AST/CanonicalType.h"  #include "clang/AST/Type.h"  #include "clang/Sema/CodeCompleteOptions.h" +#include "llvm/ADT/DenseMap.h"  #include "llvm/ADT/SmallVector.h"  #include "llvm/ADT/StringRef.h"  #include "llvm/Support/Allocator.h" @@ -440,15 +441,15 @@ private:    /// entity being completed by this result.    const char *BriefComment; -  CodeCompletionString(const CodeCompletionString &) LLVM_DELETED_FUNCTION; -  void operator=(const CodeCompletionString &) LLVM_DELETED_FUNCTION; +  CodeCompletionString(const CodeCompletionString &) = delete; +  void operator=(const CodeCompletionString &) = delete;    CodeCompletionString(const Chunk *Chunks, unsigned NumChunks,                         unsigned Priority, CXAvailabilityKind Availability,                         const char **Annotations, unsigned NumAnnotations,                         StringRef ParentName,                         const char *BriefComment); -  ~CodeCompletionString() { } +  ~CodeCompletionString() = default;    friend class CodeCompletionBuilder;    friend class CodeCompletionResult; @@ -498,20 +499,7 @@ public:  class CodeCompletionAllocator : public llvm::BumpPtrAllocator {  public:    /// \brief Copy the given string into this allocator. -  const char *CopyString(StringRef String); - -  /// \brief Copy the given string into this allocator. -  const char *CopyString(Twine String); - -  // \brief Copy the given string into this allocator. -  const char *CopyString(const char *String) { -    return CopyString(StringRef(String)); -  } - -  /// \brief Copy the given string into this allocator. -  const char *CopyString(const std::string &String) { -    return CopyString(StringRef(String)); -  } +  const char *CopyString(const Twine &String);  };  /// \brief Allocator for a cached set of global code completions. @@ -885,7 +873,8 @@ public:      CodeCompletionString *CreateSignatureString(unsigned CurrentArg,                                                  Sema &S,                                        CodeCompletionAllocator &Allocator, -                                      CodeCompletionTUInfo &CCTUInfo) const; +                                      CodeCompletionTUInfo &CCTUInfo, +                                      bool IncludeBriefComments) const;    };    CodeCompleteConsumer(const CodeCompleteOptions &CodeCompleteOpts, | 
