@@ -73,7 +73,7 @@ class FileSpec {
73
73
// / \see FileSpec::SetFile (const char *path)
74
74
explicit FileSpec (llvm::StringRef path, Style style = Style ::native);
75
75
76
- explicit FileSpec (llvm::StringRef path, const llvm::Triple &Triple );
76
+ explicit FileSpec (llvm::StringRef path, const llvm::Triple &triple );
77
77
78
78
// / Copy constructor
79
79
// /
@@ -200,10 +200,8 @@ class FileSpec {
200
200
// / only the filename will be compared, else a full comparison
201
201
// / is done.
202
202
// /
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
207
205
static int Compare (const FileSpec &lhs, const FileSpec &rhs, bool full);
208
206
209
207
static bool Equal (const FileSpec &a, const FileSpec &b, bool full);
@@ -322,10 +320,6 @@ class FileSpec {
322
320
// / Extract the full path to the file.
323
321
// /
324
322
// / Extract the directory and path into an llvm::SmallVectorImpl<>
325
- // /
326
- // / \return
327
- // / Returns a std::string with the directory and filename
328
- // / concatenated.
329
323
void GetPath (llvm::SmallVectorImpl<char > &path,
330
324
bool denormalize = true ) const ;
331
325
@@ -336,8 +330,7 @@ class FileSpec {
336
330
// / filename has no extension, ConstString(nullptr) is returned. The dot
337
331
// / ('.') character is not returned as part of the extension
338
332
// /
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.
341
334
ConstString GetFileNameExtension () const ;
342
335
343
336
// / Return the filename without the extension part
@@ -346,9 +339,7 @@ class FileSpec {
346
339
// / without the extension part (e.g. for a file named "foo.bar", "foo" is
347
340
// / returned)
348
341
// /
349
- // / \return
350
- // / Returns the filename without extension
351
- // / as a ConstString object.
342
+ // / \return Returns the filename without extension as a ConstString object.
352
343
ConstString GetFileNameStrippingExtension () const ;
353
344
354
345
// / Get the memory cost of this object.
@@ -372,12 +363,22 @@ class FileSpec {
372
363
// / \param[in] path
373
364
// / A full, partial, or relative path to a file.
374
365
// /
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.
378
368
void SetFile (llvm::StringRef path, Style style);
379
369
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);
381
382
382
383
bool IsResolved () const { return m_is_resolved; }
383
384
0 commit comments