diff options
Diffstat (limited to 'clang/lib/Tooling')
-rw-r--r-- | clang/lib/Tooling/CompilationDatabase.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Tooling/FileMatchTrie.cpp | 10 | ||||
-rw-r--r-- | clang/lib/Tooling/JSONCompilationDatabase.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Tooling/Refactoring/AtomicChange.cpp | 6 | ||||
-rw-r--r-- | clang/lib/Tooling/Refactoring/Extract/Extract.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp | 4 | ||||
-rw-r--r-- | clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp | 4 | ||||
-rw-r--r-- | clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp | 6 | ||||
-rw-r--r-- | clang/lib/Tooling/Tooling.cpp | 6 |
10 files changed, 22 insertions, 22 deletions
diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp index 3464a26d1a8..31a769fa21e 100644 --- a/clang/lib/Tooling/CompilationDatabase.cpp +++ b/clang/lib/Tooling/CompilationDatabase.cpp @@ -220,7 +220,7 @@ private: } // namespace -/// \brief Strips any positional args and possible argv[0] from a command-line +/// Strips any positional args and possible argv[0] from a command-line /// provided by the user to construct a FixedCompilationDatabase. /// /// FixedCompilationDatabase requires a command line to be in this format as it diff --git a/clang/lib/Tooling/FileMatchTrie.cpp b/clang/lib/Tooling/FileMatchTrie.cpp index 3e7c70e1952..202b3f00f3f 100644 --- a/clang/lib/Tooling/FileMatchTrie.cpp +++ b/clang/lib/Tooling/FileMatchTrie.cpp @@ -25,7 +25,7 @@ using namespace tooling; namespace { -/// \brief Default \c PathComparator using \c llvm::sys::fs::equivalent(). +/// Default \c PathComparator using \c llvm::sys::fs::equivalent(). struct DefaultPathComparator : public PathComparator { bool equivalent(StringRef FileA, StringRef FileB) const override { return FileA == FileB || llvm::sys::fs::equivalent(FileA, FileB); @@ -37,13 +37,13 @@ struct DefaultPathComparator : public PathComparator { namespace clang { namespace tooling { -/// \brief A node of the \c FileMatchTrie. +/// A node of the \c FileMatchTrie. /// /// Each node has storage for up to one path and a map mapping a path segment to /// child nodes. The trie starts with an empty root node. class FileMatchTrieNode { public: - /// \brief Inserts 'NewPath' into this trie. \c ConsumedLength denotes + /// Inserts 'NewPath' into this trie. \c ConsumedLength denotes /// the number of \c NewPath's trailing characters already consumed during /// recursion. /// @@ -81,7 +81,7 @@ public: Children[Element].insert(NewPath, ConsumedLength + Element.size() + 1); } - /// \brief Tries to find the node under this \c FileMatchTrieNode that best + /// Tries to find the node under this \c FileMatchTrieNode that best /// matches 'FileName'. /// /// If multiple paths fit 'FileName' equally well, \c IsAmbiguous is set to @@ -139,7 +139,7 @@ public: } private: - /// \brief Gets all paths under this FileMatchTrieNode. + /// Gets all paths under this FileMatchTrieNode. void getAll(std::vector<StringRef> &Results, llvm::StringMap<FileMatchTrieNode>::const_iterator Except) const { if (Path.empty()) diff --git a/clang/lib/Tooling/JSONCompilationDatabase.cpp b/clang/lib/Tooling/JSONCompilationDatabase.cpp index 67c1f5b220a..2fa5fce279d 100644 --- a/clang/lib/Tooling/JSONCompilationDatabase.cpp +++ b/clang/lib/Tooling/JSONCompilationDatabase.cpp @@ -43,7 +43,7 @@ using namespace tooling; namespace { -/// \brief A parser for escaped strings of command line arguments. +/// A parser for escaped strings of command line arguments. /// /// Assumes \-escaping for quoted arguments (see the documentation of /// unescapeCommandLine(...)). diff --git a/clang/lib/Tooling/Refactoring/AtomicChange.cpp b/clang/lib/Tooling/Refactoring/AtomicChange.cpp index e4cc6a5617b..e8b0fdbeb66 100644 --- a/clang/lib/Tooling/Refactoring/AtomicChange.cpp +++ b/clang/lib/Tooling/Refactoring/AtomicChange.cpp @@ -15,7 +15,7 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::AtomicChange) namespace { -/// \brief Helper to (de)serialize an AtomicChange since we don't have direct +/// Helper to (de)serialize an AtomicChange since we don't have direct /// access to its data members. /// Data members of a normalized AtomicChange can be directly mapped from/to /// YAML string. @@ -50,7 +50,7 @@ struct NormalizedAtomicChange { namespace llvm { namespace yaml { -/// \brief Specialized MappingTraits to describe how an AtomicChange is +/// Specialized MappingTraits to describe how an AtomicChange is /// (de)serialized. template <> struct MappingTraits<NormalizedAtomicChange> { static void mapping(IO &Io, NormalizedAtomicChange &Doc) { @@ -63,7 +63,7 @@ template <> struct MappingTraits<NormalizedAtomicChange> { } }; -/// \brief Specialized MappingTraits to describe how an AtomicChange is +/// Specialized MappingTraits to describe how an AtomicChange is /// (de)serialized. template <> struct MappingTraits<clang::tooling::AtomicChange> { static void mapping(IO &Io, clang::tooling::AtomicChange &Doc) { diff --git a/clang/lib/Tooling/Refactoring/Extract/Extract.cpp b/clang/lib/Tooling/Refactoring/Extract/Extract.cpp index b0847a74004..a12454cd29e 100644 --- a/clang/lib/Tooling/Refactoring/Extract/Extract.cpp +++ b/clang/lib/Tooling/Refactoring/Extract/Extract.cpp @@ -8,7 +8,7 @@ //===----------------------------------------------------------------------===// /// /// \file -/// \brief Implements the "extract" refactoring that can pull code into +/// Implements the "extract" refactoring that can pull code into /// new functions, methods or declare new variables. /// //===----------------------------------------------------------------------===// diff --git a/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp b/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp index c8ed9dd19a8..44ffae90efa 100644 --- a/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp +++ b/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp @@ -8,7 +8,7 @@ //===----------------------------------------------------------------------===// /// /// \file -/// \brief Provides an action to rename every symbol at a point. +/// Provides an action to rename every symbol at a point. /// //===----------------------------------------------------------------------===// diff --git a/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp b/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp index 3bfb5bbe35e..63f536c72a6 100644 --- a/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp +++ b/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp @@ -32,7 +32,7 @@ namespace { class NamedDeclOccurrenceFindingVisitor : public RecursiveSymbolVisitor<NamedDeclOccurrenceFindingVisitor> { public: - // \brief Finds the NamedDecl at a point in the source. + // Finds the NamedDecl at a point in the source. // \param Point the location in the source to search for the NamedDecl. explicit NamedDeclOccurrenceFindingVisitor(const SourceLocation Point, const ASTContext &Context) @@ -58,7 +58,7 @@ public: const NamedDecl *getNamedDecl() const { return Result; } private: - // \brief Determines if the Point is within Start and End. + // Determines if the Point is within Start and End. bool isPointWithin(const SourceLocation Start, const SourceLocation End) { // FIXME: Add tests for Point == End. return Point == Start || Point == End || diff --git a/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp b/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp index 40b70d8a059..2e7c9b0cc31 100644 --- a/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp +++ b/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp @@ -8,7 +8,7 @@ //===----------------------------------------------------------------------===// /// /// \file -/// \brief Provides an action to find USR for the symbol at <offset>, as well as +/// Provides an action to find USR for the symbol at <offset>, as well as /// all additional USRs. /// //===----------------------------------------------------------------------===// @@ -55,7 +55,7 @@ const NamedDecl *getCanonicalSymbolDeclaration(const NamedDecl *FoundDecl) { } namespace { -// \brief NamedDeclFindingConsumer should delegate finding USRs of given Decl to +// NamedDeclFindingConsumer should delegate finding USRs of given Decl to // AdditionalUSRFinder. AdditionalUSRFinder adds USRs of ctor and dtor if given // Decl refers to class and adds USRs of all overridden methods if Decl refers // to virtual method. diff --git a/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp b/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp index 56f32dd2eca..fb06b91118b 100644 --- a/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp +++ b/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp @@ -8,7 +8,7 @@ //===----------------------------------------------------------------------===// /// /// \file -/// \brief Methods for finding all instances of a USR. Our strategy is very +/// Methods for finding all instances of a USR. Our strategy is very /// simple; we just compare the USR at every relevant AST node with the one /// provided. /// @@ -50,7 +50,7 @@ bool IsValidEditLoc(const clang::SourceManager& SM, clang::SourceLocation Loc) { return SM.getFileEntryForID(FileIdAndOffset.first) != nullptr; } -// \brief This visitor recursively searches for all instances of a USR in a +// This visitor recursively searches for all instances of a USR in a // translation unit and stores them for later usage. class USRLocFindingASTVisitor : public RecursiveSymbolVisitor<USRLocFindingASTVisitor> { @@ -80,7 +80,7 @@ public: // Non-visitors: - /// \brief Returns a set of unique symbol occurrences. Duplicate or + /// Returns a set of unique symbol occurrences. Duplicate or /// overlapping occurrences are erroneous and should be reported! SymbolOccurrences takeOccurrences() { return std::move(Occurrences); } diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index f6bce4807f5..d40112f72e5 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/lib/Tooling/Tooling.cpp @@ -73,7 +73,7 @@ FrontendActionFactory::~FrontendActionFactory() = default; // code that sets up a compiler to run tools on it, and we should refactor // it to be based on the same framework. -/// \brief Builds a clang driver initialized for running clang tools. +/// Builds a clang driver initialized for running clang tools. static driver::Driver *newDriver( DiagnosticsEngine *Diagnostics, const char *BinaryName, IntrusiveRefCntPtr<vfs::FileSystem> VFS) { @@ -84,7 +84,7 @@ static driver::Driver *newDriver( return CompilerDriver; } -/// \brief Retrieves the clang CC1 specific flags out of the compilation's jobs. +/// Retrieves the clang CC1 specific flags out of the compilation's jobs. /// /// Returns nullptr on error. static const llvm::opt::ArgStringList *getCC1Arguments( @@ -114,7 +114,7 @@ static const llvm::opt::ArgStringList *getCC1Arguments( namespace clang { namespace tooling { -/// \brief Returns a clang build invocation initialized from the CC1 flags. +/// Returns a clang build invocation initialized from the CC1 flags. CompilerInvocation *newInvocation( DiagnosticsEngine *Diagnostics, const llvm::opt::ArgStringList &CC1Args) { assert(!CC1Args.empty() && "Must at least contain the program name!"); |