forked from avast/retdec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into borland_ast_parser
- Loading branch information
Showing
70 changed files
with
262 additions
and
26,126 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
include/llvm/Demangle/borland_ast.h → include/retdec/demangler/borland_ast.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,16 @@ | ||
/** | ||
* @file include/retdec/demangler/demangler.h | ||
* @brief Demangler library. | ||
* @copyright (c) 2017 Avast Software, licensed under the MIT license | ||
* @file include/retdec/demangler/demangler_retdec.h | ||
* @brief File to include for demangling work. | ||
* @copyright (c) 2018 Avast Software, licensed under the MIT license | ||
*/ | ||
|
||
#ifndef RETDEC_DEMANGLER_DEMANGLERL_H | ||
#define RETDEC_DEMANGLER_DEMANGLERL_H | ||
#ifndef RETDEC_DEMANGLER_H | ||
#define RETDEC_DEMANGLER_H | ||
|
||
#include <memory> | ||
#include <string> | ||
#include "retdec/demangler/demangler_base.h" | ||
#include "retdec/demangler/itanium_demangler.h" | ||
#include "retdec/demangler/microsoft_demangler.h" | ||
#include "retdec/demangler/borland_demangler.h" | ||
#include "retdec/demangler/demangler_factory.h" | ||
|
||
#include "retdec/demangler/gparser.h" | ||
|
||
namespace retdec { | ||
namespace demangler { | ||
|
||
/** | ||
* The grammar parser class - the core of the demangler. | ||
*/ | ||
class CDemangler { | ||
cGram *pGram; | ||
cName *pName; | ||
std::string compiler = "gcc"; | ||
cGram::errcode errState; /// error state; 0 = everyting is ok | ||
|
||
public: | ||
CDemangler(std::string gname, bool i = true); | ||
static std::unique_ptr<CDemangler> createGcc(bool i = true); | ||
static std::unique_ptr<CDemangler> createMs(bool i = true); | ||
static std::unique_ptr<CDemangler> createBorland(bool i = true); | ||
virtual ~CDemangler(); | ||
|
||
bool isOk(); | ||
std::string printError(); | ||
void resetError(); | ||
|
||
void createGrammar(std::string inputfilename, std::string outputname); | ||
cName *demangleToClass(std::string inputName); | ||
std::string demangleToString(std::string inputName); | ||
void setSubAnalyze(bool x); | ||
}; | ||
|
||
} // namespace demangler | ||
} // namespace retdec | ||
|
||
#endif | ||
#endif //RETDEC_DEMANGLER_H |
2 changes: 1 addition & 1 deletion
2
include/llvm/Demangle/demangler_base.h → include/retdec/demangler/demangler_base.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.