@@ -73,7 +73,7 @@ class FileSpec {
7373 // / \see FileSpec::SetFile (const char *path)
7474 explicit FileSpec (llvm::StringRef path, Style style = Style::native);
7575
76- explicit FileSpec (llvm::StringRef path, const llvm::Triple &Triple );
76+ explicit FileSpec (llvm::StringRef path, const llvm::Triple &triple );
7777
7878 // / Copy constructor
7979 // /
@@ -200,10 +200,8 @@ class FileSpec {
200200 // / only the filename will be compared, else a full comparison
201201 // / is done.
202202 // /
203- // / \return
204- // / \li -1 if \a lhs is less than \a rhs
205- // / \li 0 if \a lhs is equal to \a rhs
206- // / \li 1 if \a lhs is greater than \a rhs
203+ // / \return -1 if \a lhs is less than \a rhs, 0 if \a lhs is equal to \a rhs,
204+ // / 1 if \a lhs is greater than \a rhs
207205 static int Compare (const FileSpec &lhs, const FileSpec &rhs, bool full);
208206
209207 static bool Equal (const FileSpec &a, const FileSpec &b, bool full);
@@ -322,10 +320,6 @@ class FileSpec {
322320 // / Extract the full path to the file.
323321 // /
324322 // / Extract the directory and path into an llvm::SmallVectorImpl<>
325- // /
326- // / \return
327- // / Returns a std::string with the directory and filename
328- // / concatenated.
329323 void GetPath (llvm::SmallVectorImpl<char > &path,
330324 bool denormalize = true ) const ;
331325
@@ -336,8 +330,7 @@ class FileSpec {
336330 // / filename has no extension, ConstString(nullptr) is returned. The dot
337331 // / ('.') character is not returned as part of the extension
338332 // /
339- // / \return
340- // / Returns the extension of the file as a ConstString object.
333+ // / \return Returns the extension of the file as a ConstString object.
341334 ConstString GetFileNameExtension () const ;
342335
343336 // / Return the filename without the extension part
@@ -346,9 +339,7 @@ class FileSpec {
346339 // / without the extension part (e.g. for a file named "foo.bar", "foo" is
347340 // / returned)
348341 // /
349- // / \return
350- // / Returns the filename without extension
351- // / as a ConstString object.
342+ // / \return Returns the filename without extension as a ConstString object.
352343 ConstString GetFileNameStrippingExtension () const ;
353344
354345 // / Get the memory cost of this object.
@@ -372,12 +363,22 @@ class FileSpec {
372363 // / \param[in] path
373364 // / A full, partial, or relative path to a file.
374365 // /
375- // / \param[in] resolve_path
376- // / If \b true, then we will try to resolve links the path using
377- // / the static FileSpec::Resolve.
366+ // / \param[in] style
367+ // / The style for the given path.
378368 void SetFile (llvm::StringRef path, Style style);
379369
380- void SetFile (llvm::StringRef path, const llvm::Triple &Triple);
370+ // / Change the file specified with a new path.
371+ // /
372+ // / Update the contents of this object with a new path. The path will be
373+ // / split up into a directory and filename and stored as uniqued string
374+ // / values for quick comparison and efficient memory usage.
375+ // /
376+ // / \param[in] path
377+ // / A full, partial, or relative path to a file.
378+ // /
379+ // / \param[in] triple
380+ // / The triple which is used to set the Path style.
381+ void SetFile (llvm::StringRef path, const llvm::Triple &triple);
381382
382383 bool IsResolved () const { return m_is_resolved; }
383384
0 commit comments