Commit 5942ae86 authored by Sindhu Chittireddy's avatar Sindhu Chittireddy
Browse files

[NFC] Initialize class member pointers to nullptr.

parent 60bbddf3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ private:
  SourceRange Range;

  mutable StringRef RawText;
  mutable const char *BriefText;
  mutable const char *BriefText = nullptr;

  mutable bool RawTextValid : 1;   ///< True if RawText is valid
  mutable bool BriefTextValid : 1; ///< True if BriefText is valid
+1 −1
Original line number Diff line number Diff line
@@ -240,7 +240,7 @@ public:
  class redecl_iterator {
    /// Current - The current declaration.
    decl_type *Current = nullptr;
    decl_type *Starter;
    decl_type *Starter = nullptr;
    bool PassedFirst = false;

  public:
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ public:

  CodeGenerator *getCodeGenerator() const;

  BackendConsumer *BEConsumer;
  BackendConsumer *BEConsumer = nullptr;
};

class EmitAssemblyAction : public CodeGenAction {
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ class Sema;
class HLSLExternalSemaSource : public ExternalSemaSource {
  Sema *SemaPtr = nullptr;
  NamespaceDecl *HLSLNamespace = nullptr;
  CXXRecordDecl *ResourceDecl;
  CXXRecordDecl *ResourceDecl = nullptr;

  using CompletionFunction = std::function<void(CXXRecordDecl *)>;
  llvm::DenseMap<CXXRecordDecl *, CompletionFunction> Completions;
+1 −1
Original line number Diff line number Diff line
@@ -943,7 +943,7 @@ public:
  class DelayedDiagnostics;
  class DelayedDiagnosticsState {
    sema::DelayedDiagnosticPool *SavedPool;
    sema::DelayedDiagnosticPool *SavedPool = nullptr;
    friend class Sema::DelayedDiagnostics;
  };
  typedef DelayedDiagnosticsState ParsingDeclState;
Loading