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

« back to all changes in this revision

Viewing changes to clang/include/clang/Frontend/CompilerInstance.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:
395
395
  /// @name ASTConsumer
396
396
  /// {
397
397
 
398
 
  bool hasASTConsumer() const { return Consumer != 0; }
 
398
  bool hasASTConsumer() const { return Consumer.isValid(); }
399
399
 
400
400
  ASTConsumer &getASTConsumer() const {
401
401
    assert(Consumer && "Compiler instance has no AST consumer!");
413
413
  /// }
414
414
  /// @name Semantic analysis
415
415
  /// {
416
 
  bool hasSema() const { return TheSema != 0; }
 
416
  bool hasSema() const { return TheSema.isValid(); }
417
417
  
418
418
  Sema &getSema() const { 
419
419
    assert(TheSema && "Compiler instance has no Sema object!");
427
427
  /// {
428
428
 
429
429
  ASTReader *getModuleManager() const { return ModuleManager; }
 
430
  void setModuleManager(ASTReader *Reader) { ModuleManager = Reader; }
430
431
 
431
432
  /// }
432
433
  /// @name Code Completion
433
434
  /// {
434
435
 
435
 
  bool hasCodeCompletionConsumer() const { return CompletionConsumer != 0; }
 
436
  bool hasCodeCompletionConsumer() const {
 
437
    return CompletionConsumer.isValid();
 
438
  }
436
439
 
437
440
  CodeCompleteConsumer &getCodeCompletionConsumer() const {
438
441
    assert(CompletionConsumer &&
454
457
  /// @name Frontend timer
455
458
  /// {
456
459
 
457
 
  bool hasFrontendTimer() const { return FrontendTimer != 0; }
 
460
  bool hasFrontendTimer() const { return FrontendTimer.isValid(); }
458
461
 
459
462
  llvm::Timer &getFrontendTimer() const {
460
463
    assert(FrontendTimer && "Compiler instance has no frontend timer!");
492
495
  ///
493
496
  /// \param ShouldOwnClient If Client is non-NULL, specifies whether 
494
497
  /// the diagnostic object should take ownership of the client.
495
 
  ///
496
 
  /// \param ShouldCloneClient If Client is non-NULL, specifies whether that
497
 
  /// client should be cloned.
498
498
  void createDiagnostics(DiagnosticConsumer *Client = 0,
499
 
                         bool ShouldOwnClient = true,
500
 
                         bool ShouldCloneClient = true);
 
499
                         bool ShouldOwnClient = true);
501
500
 
502
501
  /// Create a DiagnosticsEngine object with a the TextDiagnosticPrinter.
503
502
  ///
521
520
  createDiagnostics(DiagnosticOptions *Opts,
522
521
                    DiagnosticConsumer *Client = 0,
523
522
                    bool ShouldOwnClient = true,
524
 
                    bool ShouldCloneClient = true,
525
523
                    const CodeGenOptions *CodeGenOpts = 0);
526
524
 
527
525
  /// Create the file manager and replace any existing one with it.
666
664
                                 SourceLocation ImportLoc,
667
665
                                 bool Complain);
668
666
 
 
667
  bool hadModuleLoaderFatalFailure() const {
 
668
    return ModuleLoader::HadFatalFailure;
 
669
  }
 
670
 
669
671
};
670
672
 
671
673
} // end namespace clang