2014-11-19 19:26:11 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* Based on LLVM/Clang.
|
|
|
|
*
|
|
|
|
* This file is distributed under the University of Illinois Open Source
|
|
|
|
* License. See LICENSE.TXT for details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-08-26 17:08:15 +05:30
|
|
|
#pragma once
|
2014-11-19 19:26:11 +01:00
|
|
|
|
|
|
|
#include "plugin.hxx"
|
|
|
|
|
|
|
|
namespace loplugin
|
|
|
|
{
|
|
|
|
|
|
|
|
struct WalkCounter;
|
|
|
|
|
|
|
|
// The class implementing the plugin action.
|
|
|
|
class CascadingAssignOp
|
2019-04-24 13:21:19 +00:00
|
|
|
// Inherits from the Clang class that will allow examining the Clang AST tree (i.e. syntax tree).
|
2018-08-13 17:24:26 +02:00
|
|
|
: public FilteringPlugin< CascadingAssignOp >
|
2014-11-19 19:26:11 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CascadingAssignOp( const InstantiationData& data );
|
|
|
|
virtual void run() override;
|
|
|
|
void Walk( const Stmt* stmt, WalkCounter& c );
|
|
|
|
bool VisitStmt( const Stmt* stmt );
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace loplugin
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|