llvm-project/lldb
Zachary Turner 6753d2d180 [ast] CreateParameterDeclaration should use an appropriate DeclContext.
Previously CreateParameterDeclaration was always using the translation
unit DeclContext.  We would later go and add parameters to the
FunctionDecl, but internally clang makes a copy when you do this, and
we'd end up with ParmVarDecl's at the global scope as well as in the
function scope.

This fixes the issue.  It's hard to say whether this will introduce
a behavioral change in name lookup, but I know there have been several
hacks introduced in previous years to deal with collisions between
various types of variables, so there's a chance that this patch could
obviate one of those hacks.

Differential Revision: https://reviews.llvm.org/D55571

llvm-svn: 348941
2018-12-12 17:17:53 +00:00
..
cmake [CMake] Fix side-effect from LLDB_VERSION change in r346668 for framework-enabled builds 2018-12-05 12:18:44 +00:00
docs Test commit 2018-11-03 05:12:15 +00:00
examples Remove header grouping comments. 2018-11-11 23:17:06 +00:00
include/lldb [ast] CreateParameterDeclaration should use an appropriate DeclContext. 2018-12-12 17:17:53 +00:00
lit ELF: Clean up section type computation 2018-12-12 15:46:18 +00:00
lldb.xcodeproj Add ObjectFileBreakpad.{cpp,h} to the Xcode project. 2018-12-11 19:25:03 +00:00
lldb.xcworkspace Fix a typo in the gtest build target for Debug configuration. 2018-04-10 17:49:56 +00:00
packages/Python/lldbsuite Remove unused file 2018-12-11 22:46:56 +00:00
resources Fix up Info.plist when building LLDB.framework with CMake 2018-06-19 02:59:30 +00:00
scripts Make scripts/analyzer-project-deps compatible with python3 2018-12-06 10:27:38 +00:00
source [ast] CreateParameterDeclaration should use an appropriate DeclContext. 2018-12-12 17:17:53 +00:00
test Revert "[CMake] Streamline code signing for debugserver and pass entitlements to extended llvm_codesign" 2018-11-27 00:25:49 +00:00
third_party/Python/module
tools ELF: Clean up section type computation 2018-12-12 15:46:18 +00:00
unittests Add another ArchSpec unit test. 2018-12-06 17:11:45 +00:00
utils Fix typos. 2018-10-04 22:33:39 +00:00
www [lldb] Introduce StackFrameRecognizer [take 3] 2018-10-31 04:00:22 +00:00
.arcconfig
.clang-format
.gitignore [dotest] Remove crashinfo hook 2018-01-10 10:18:47 +00:00
CMakeLists.txt [CMake] Fix side-effect from LLDB_VERSION change in r346668 for framework-enabled builds 2018-12-05 12:18:44 +00:00
CODE_OWNERS.txt Fix/unify the spelling of Objective-C. 2018-06-13 16:21:24 +00:00
INSTALL.txt Changed builld-llvm.py to use .json files 2017-02-23 02:21:34 +00:00
LICENSE.TXT
use_lldb_suite_root.py