Browse Source

No need to qualify methods with class name in class body (#198)

Lei Zhang 8 năm trước cách đây
mục cha
commit
26d48613ba

+ 4 - 4
include/dxc/HLSL/DxilResourceBase.h

@@ -57,10 +57,10 @@ public:
   // TODO: check whether we can make this a protected method.
   // TODO: check whether we can make this a protected method.
   void SetID(unsigned ID);
   void SetID(unsigned ID);
 
 
-  const char *DxilResourceBase::GetResClassName() const;
-  const char *DxilResourceBase::GetResDimName() const;
-  const char *DxilResourceBase::GetResIDPrefix() const;
-  const char *DxilResourceBase::GetResBindPrefix() const;
+  const char *GetResClassName() const;
+  const char *GetResDimName() const;
+  const char *GetResIDPrefix() const;
+  const char *GetResBindPrefix() const;
 
 
 protected:
 protected:
   void SetClass(Class C);
   void SetClass(Class C);

+ 1 - 1
include/dxc/HLSL/DxilSemantic.h

@@ -34,7 +34,7 @@ public:
     unsigned MajorVersion = ShaderModel::kHighestMajor, unsigned MinorVersion = ShaderModel::kHighestMinor);
     unsigned MajorVersion = ShaderModel::kHighestMajor, unsigned MinorVersion = ShaderModel::kHighestMinor);
   static const Semantic *GetInvalid();
   static const Semantic *GetInvalid();
   static const Semantic *GetArbitrary();
   static const Semantic *GetArbitrary();
-  static bool Semantic::HasSVPrefix(llvm::StringRef Name);
+  static bool HasSVPrefix(llvm::StringRef Name);
   static void DecomposeNameAndIndex(llvm::StringRef FullName, llvm::StringRef *pName, unsigned *pIndex);
   static void DecomposeNameAndIndex(llvm::StringRef FullName, llvm::StringRef *pName, unsigned *pIndex);
 
 
   Kind GetKind() const;
   Kind GetKind() const;