Made many ConstString functions inlined in the header file.
Changed all of our synthesized "___clang" functions, types and variables
that get used in expressions over to have a prefix of "$_lldb". Now when we
do name lookups we can easily switch off of the first '$' character to know
if we should look through only our internal (when first char is '$') stuff,
or when we should look through program variables, functions and types.
Converted all of the clang expression code over to using "const ConstString&"
values for names instead of "const char *" since there were many places that
were converting the "const char *" names into ConstString names and them
throwing them away. We now avoid making a lot of ConstString conversions and
benefit from the quick comparisons in a few extra spots.
Converted a lot of code from LLVM coding conventions into LLDB coding
conventions.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@116634 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangFunction.cpp b/source/Expression/ClangFunction.cpp
index 4ef26d1..dfb663e 100644
--- a/source/Expression/ClangFunction.cpp
+++ b/source/Expression/ClangFunction.cpp
@@ -45,11 +45,14 @@
//----------------------------------------------------------------------
// ClangFunction constructor
//----------------------------------------------------------------------
-ClangFunction::ClangFunction(const char *target_triple,
- ClangASTContext *ast_context,
- void *return_qualtype,
- const Address& functionAddress,
- const ValueList &arg_value_list) :
+ClangFunction::ClangFunction
+(
+ const char *target_triple,
+ ClangASTContext *ast_context,
+ void *return_qualtype,
+ const Address& functionAddress,
+ const ValueList &arg_value_list
+) :
m_target_triple (target_triple),
m_function_ptr (NULL),
m_function_addr (functionAddress),
@@ -65,10 +68,13 @@
{
}
-ClangFunction::ClangFunction(const char *target_triple,
- Function &function,
- ClangASTContext *ast_context,
- const ValueList &arg_value_list) :
+ClangFunction::ClangFunction
+(
+ const char *target_triple,
+ Function &function,
+ ClangASTContext *ast_context,
+ const ValueList &arg_value_list
+) :
m_target_triple (target_triple),
m_function_ptr (&function),
m_function_addr (),