Browse Source

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

Lei Zhang 8 years ago
parent
commit
26d48613ba
2 changed files with 5 additions and 5 deletions
  1. 4 4
      include/dxc/HLSL/DxilResourceBase.h
  2. 1 1
      include/dxc/HLSL/DxilSemantic.h

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

@@ -57,10 +57,10 @@ public:
   // TODO: check whether we can make this a protected method.
   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:
   void SetClass(Class C);

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

@@ -34,7 +34,7 @@ public:
     unsigned MajorVersion = ShaderModel::kHighestMajor, unsigned MinorVersion = ShaderModel::kHighestMinor);
   static const Semantic *GetInvalid();
   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);
 
   Kind GetKind() const;