~ubuntu-branches/ubuntu/trusty/llvm-toolchain-snapshot/trusty-201310232150

« back to all changes in this revision

Viewing changes to lldb/include/lldb/Host/FileSpec.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-27 15:01:57 UTC
  • mfrom: (0.10.1) (0.9.1) (0.8.1) (0.7.1) (0.6.1) (0.5.2)
  • Revision ID: package-import@ubuntu.com-20130527150157-tdkrsjpuvht7v0qx
Tags: 1:3.4~svn182733-1~exp1
* New snapshot release (3.4 release)
* Add a symlink of libLLVM-3.4.so.1 to usr/lib/llvm-3.4/lib/libLLVM-3.4.so
    to fix make the llvm-config-3.4 --libdir work (Closes: #708677)
  * Various packages rename to allow co installations:
    * libclang1 => libclang1-3.4
    * libclang1-dbg => libclang1-3.4-dbg
    * libclang-dev => libclang-3.4-dev
    * libclang-common-dev => libclang-common-3.4-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
    GetPath (char *path, size_t max_path_length) const;
382
382
 
383
383
    //------------------------------------------------------------------
 
384
    /// Extract the full path to the file.
 
385
    ///
 
386
    /// Extract the directory and path into a std::string, which is returned.
 
387
    ///
 
388
    /// @return
 
389
    ///     Returns a std::string with the directory and filename 
 
390
    ///     concatenated.
 
391
    //------------------------------------------------------------------
 
392
    std::string
 
393
    GetPath () const;
 
394
 
 
395
    //------------------------------------------------------------------
384
396
    /// Extract the extension of the file.
385
397
    ///
386
398
    /// Returns a ConstString that represents the extension of the filename
411
423
    FileType
412
424
    GetFileType () const;
413
425
 
 
426
    bool
 
427
    IsDirectory () const
 
428
    {
 
429
        return GetFileType() == FileSpec::eFileTypeDirectory;
 
430
    }
 
431
 
 
432
    bool
 
433
    IsPipe () const
 
434
    {
 
435
        return GetFileType() == FileSpec::eFileTypePipe;
 
436
    }
 
437
 
 
438
    bool
 
439
    IsRegularFile () const
 
440
    {
 
441
        return GetFileType() == FileSpec::eFileTypeRegular;
 
442
    }
 
443
 
 
444
    bool
 
445
    IsSocket () const
 
446
    {
 
447
        return GetFileType() == FileSpec::eFileTypeSocket;
 
448
    }
 
449
 
 
450
    bool
 
451
    IsSymbolicLink () const
 
452
    {
 
453
        return GetFileType() == FileSpec::eFileTypeSymbolicLink;
 
454
    }
 
455
 
414
456
    //------------------------------------------------------------------
415
457
    /// Get the memory cost of this object.
416
458
    ///